uk.org.simonsite.log4j.appender
Class TimeBasedRoller

java.lang.Object
  extended by uk.org.simonsite.log4j.appender.AbstractRoller
      extended by uk.org.simonsite.log4j.appender.TimeBasedRoller
All Implemented Interfaces:
FileRollable

final class TimeBasedRoller
extends AbstractRoller
implements FileRollable

Responsible for rolling at a logging time boundary, as configured by a date pattern.

Version:
2.8
Author:
Simon Park

Constructor Summary
TimeBasedRoller(TimeAndSizeRollingAppender rollingAppender)
           
 
Method Summary
(package private)  TimeBasedRollStrategy getRollStrategy()
          For test purposes only.
 boolean roll(LoggingEvent loggingEvent)
          Not thread-safe.
 
Methods inherited from class uk.org.simonsite.log4j.appender.AbstractRoller
getAppender, getProperties, roll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeBasedRoller

TimeBasedRoller(TimeAndSizeRollingAppender rollingAppender)
Method Detail

roll

public final boolean roll(LoggingEvent loggingEvent)
Not thread-safe.

Specified by:
roll in interface FileRollable
See Also:
FileRollable.roll(LoggingEvent)

getRollStrategy

final TimeBasedRollStrategy getRollStrategy()
For test purposes only.

Returns:
The current strategy.