Results 1 to 1 of 1
- 04-16-2009, 03:33 PM #1
Member
- Join Date
- Apr 2009
- Posts
- 1
- Rep Power
- 0
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.
for ex:
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
PROBLEM :
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.logLast edited by vaibhavborole; 04-27-2009 at 11:37 AM.
Similar Threads
-
log4j problem.
By dheerajsea123 in forum Advanced JavaReplies: 1Last Post: 12-10-2008, 08:33 AM -
Track Java web application logs in Firefox using LogDigger
By martinw in forum Java SoftwareReplies: 0Last Post: 11-24-2008, 06:48 PM -
Log4j - setting up name of log file
By Virkant Pawar in forum New To JavaReplies: 3Last Post: 06-03-2008, 07:39 AM -
log4j property file in my application
By Peter in forum Advanced JavaReplies: 3Last Post: 06-14-2007, 03:12 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks