[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    Re: DailyRollingFileAppender roll time
From:       Maarten Bosteels <mbosteels.dns () gmail ! com>
Date:       2009-11-16 8:34:25
Message-ID: 5e87acee0911160034p4f0b8f0dob7a399bf1998eb10 () mail ! gmail ! com
[Download RAW message or body]


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
> 
> 



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic