You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by kolhead <am...@gmail.com> on 2009/11/10 23:16:03 UTC

DailyRollingFileAppender roll time

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


Re: DailyRollingFileAppender roll time

Posted by Maarten Bosteels <mb...@gmail.com>.
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 <am...@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
>
>