• 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

DailyRollingFileAppender problem

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

In my log4j properties i have specified DailyRollingFileAppender in order to rollover 4 log files and the DatePattern that i have specified is '.'yyyy_mm_dd (rolling over at midnight), but the problem is that one of the log file is not getting rolled over at all, while the other log files are getting rolled over but not at midnight.

The log4j properties looks fine.

Can i get a solution to this problem.
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They won't roll over at exactly midnight unless logging occurs then. They should roll over after midnight when logging to that file occurs.

If that doesn't explain why the one doesn't log over, perhaps you could provide more details.
reply
    Bookmark Topic Watch Topic
  • New Topic