Log4j problem - Logs are rolling into the previous date file
I am using log4j with tomcat 6.0 for a web application
I have started my web application with multiple server mode, as I have 3 ulrs for the same web application
I am using "org.apache.log4j.DailyRollingFileAppender" in log4j.xml to append the file and date patterns as "yyyy-MM-dd",
but when the date of the server is changed the copy of the original file is created with the appeding a date at last of the file name and the
orginal file is kept as it is .
and if any one access the application the logs get genarated in the new file which is created with the date appended in the last of the file name.
The logs should get generated in the orignal file, but it is not working.
Today the date is 14th April logs are getting generated in LOGS_ORGINAL_FILE.log file and when the date gets changed on server
a new file is created with name as LOGS_ORGINAL_FILE_2009_04_14.log and
all the logs from LOGS_ORGINAL_FILE.log are present in LOGS_ORGINAL_FILE_2009_04_14.log
after the date change if any body access the application all the logs get generated in LOGS_ORGINAL_FILE_2009_04_14.log which is in correct
It should get generated in LOGS_ORGINAL_FILE.log