logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Bosteels <mbosteels....@gmail.com>
Subject Re: DailyRollingFileAppender roll time
Date Mon, 16 Nov 2009 08:34:25 GMT
According to the javadocs:

http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/DailyRollingFileAppender.html#subAppend(org.apache.log4j.spi.LoggingEvent)

"Before actually logging, this method will check whether it is time to do a
rollover. If it is, it will schedule the next rollover time and then
rollover. "

This means it can take 2 seconds or 2 years before it actually rolls (when
no log events are being generated for 2 years).

M.

On Tue, Nov 10, 2009 at 11:16 PM, kolhead <amolkulkar@gmail.com> wrote:

>
> Hi,
>
> At exactly what time does the DailyRollingFileAppender roll the logs . Is
> it
> 23:59 or 00:00.
>
> Thanks
> --
> View this message in context:
> http://old.nabble.com/DailyRollingFileAppender-roll-time-tp26292283p26292283.html
> Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message