My logger out put is getting appended every time i run my application through a java scheduler ( TimerTask).This would fine if i call my app thru a main method . Please find the details below...
1. scheduler{ ..... ..... private static Logger theLog = Logger.getLogger("test"); fileHandler = new FileHandler("testlog%g", 30000, 3,false); timer = new Timer(); testTimeTask = new TestTimeTask(); timer.scheduleAtFixedRate(testTimeTask,startNow,3mins); }
Above code suppose to rotate the log output between 3 log files with no append. It is not happening instead output is getting appended to file "testLog0.log" .