[logback-user] TimeBasedRollingPolicy

paha ch_pasha at yahoo.com
Wed Mar 18 22:03:12 CET 2009

Ceki Gulcu wrote:
> The first cron job launched after midnight will trigger rollover. Isn't
> that the 
> behavior you are observing?
> i wouldn't ask in that case :) . no it never rolls over. for the case if
> you ask, my configuration

<appender name="FILE"



        <layout class="ch.qos.logback.classic.PatternLayout">
    <root level="info">
        <appender-ref ref="FILE"/>

Logback version - the last available

Ceki Gulcu wrote:
> By the way, for obvious reasons, triggering at midnight cannot happen
> every 2 
> hours.
> didn't get it. could you please explain? if it starts at 12-00 am, the
> file modification time must be still from previous day, and roll over
> should happen with the next event. doesn't it? anyway, it doesn't roll
> over at all, even if script starts ones per day at for instance 14-30.

View this message in context: http://www.nabble.com/TimeBasedRollingPolicy-tp19756004p22588225.html
Sent from the Logback User mailing list archive at Nabble.com.

More information about the Logback-user mailing list