wood burning stoves 2.0*
The moose likes Java in General and the fly likes new logfile after 24h Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "new logfile after 24h" Watch "new logfile after 24h" New topic

new logfile after 24h

Stefan Gerber
Ranch Hand

Joined: Mar 08, 2008
Posts: 33
I have a service that can run several days. I use the java logger to log some information. I have configured that the logger
should create each day a new log file. Now i have the problem that if the jvm (logger) is not initialized again each day
the logger logs all information in the same file. Is there a way that the logger noticed that a new day has started?

It is sorta covered in the JavaRanch Style Guide.
subject: new logfile after 24h
Similar Threads
Writing logs to a single file from Multiple Classes
log4j DailyRollingFileAppender
Logging file
java logger
Log4J created two log files but should have only done one