logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sanders <dsand...@chaincast.com>
Subject DailyRollingFileAppender does not rollover when expected to
Date Sat, 02 Feb 2002 00:28:27 GMT
pender.html says:

"For example, if the File option is set to /foo/bar.log and the DatePattern
set to '.'yyyy-MM-dd, on 2001-02-16 at midnight, the logging file /foo/
bar.log will be copied to /foo/bar.log.2001-02-16 and logging for 2001-02-17
will continue in /foo/bar.log until it rolls over the next day"

I don't mean to be picky, but the above statement isn't accurate.  The file
is rolled upon the first log attempt AFTER midnight.  In my application,
there may be no logging between midnight and 5:00 AM.  Yet, I need the files
to be closed and renamed at midnight so a tool can grab them and do billing
based on sessions in the log.

Version 1.15 of DailyRollingFileAppender fixed the "restart" problem, but
did not fix the problem described above.

DailyRollingFileAppender and DatedFileAppender have the same problem, i.e.,
they roll when first log attempt is made after midnight.

To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>

View raw message