jQuery in Action, 2nd edition*
The moose likes Other Open Source Projects and the fly likes Problem with DailyRollingFileAppender in log4j 1.2.15 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Problem with DailyRollingFileAppender in log4j 1.2.15" Watch "Problem with DailyRollingFileAppender in log4j 1.2.15" New topic
Author

Problem with DailyRollingFileAppender in log4j 1.2.15

prashant potluri
Greenhorn

Joined: Aug 08, 2007
Posts: 2
I am having problem configuring daily logs in log4j. I am writing logs from a simple web application running within OC4J 10.1.3 + log4j 1.2.15.

Once the date is changed on my machine, the existing log file name changes to current date(works correctly) and a new log file is created with all the previous log file contents appended repetitively(wrong behavior).

At the same time frame, it is writing log recursively.
For e.g.

2009-02-24 07:03:00,180 [INFO ] - This is cpu log
2009-02-24 07:03:00,195 [INFO ] - This is cpu log
2009-02-24 07:03:00,195 [INFO ] - This is cpu log
2009-02-24 07:03:00,195 [INFO ] - This is cpu log
2009-02-24 07:03:00,195 [INFO ] - This is cpu log
2009-02-24 07:03:00,195 [INFO ] - This is cpu log

This happened when i modified the machine date to next day.

Any suggestions on this?

Regards,
Prashant

Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

"prashant " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with DailyRollingFileAppender in log4j 1.2.15
 
Similar Threads
Importance of jbossjta-properties.xml
Problem starting JBOSS 4.2.3
Another q from mock
JSP + Mysql connection
Attribute Listener