• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with DailyRollingFileAppender in log4j 1.2.15

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"prashant " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.
 
Tomorrow is the first day of the new metric calendar. Comfort me tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic