Module ch.qos.logback.core
Package ch.qos.logback.core.rolling
Implements various file rolling policies.
The RollingFileAppender class
serves as the linchpin of this package. Its behaviour is
controlled by two subcomponents of type RollingPolicy and TriggeringPolicy.
-
Interface Summary Interface Description LengthCounter RollingPolicy ARollingPolicyis responsible for performing the rolling over of the active log file.TimeBasedFileNamingAndTriggeringPolicy<E> This interface lists the set of methods that need to be implemented by triggering policies which are nested within aTimeBasedRollingPolicy.TriggeringPolicy<E> ATriggeringPolicycontrols the conditions under which roll-over occurs. -
Class Summary Class Description DefaultTimeBasedFileNamingAndTriggeringPolicy<E> Default implementation ofTimeBasedFileNamingAndTriggeringPolicyinterface extendingTimeBasedFileNamingAndTriggeringPolicyBase.FixedWindowRollingPolicy When rolling over,FixedWindowRollingPolicyrenames files according to a fixed window algorithm.LengthCounterBase RollingFileAppender<E> RollingFileAppenderextendsFileAppenderto back up the log files depending onRollingPolicyandTriggeringPolicy.RollingPolicyBase Implements methods common to most, it not all, rolling policies.SizeAndTimeBasedFileNamingAndTriggeringPolicy<E> This class implementTimeBasedFileNamingAndTriggeringPolicyinterface extendingTimeBasedFileNamingAndTriggeringPolicyBase.SizeAndTimeBasedFNATP<E> SizeAndTimeBasedFNATPclass was renamed asSizeAndTimeBasedFileNamingAndTriggeringPolicyin version 1.5.8.SizeAndTimeBasedRollingPolicy<E> SizeBasedTriggeringPolicy<E> SizeBasedTriggeringPolicy looks at size of the file being currently written to.TimeBasedFileNamingAndTriggeringPolicyBase<E> Base implementation ofTimeBasedFileNamingAndTriggeringPolicy.TimeBasedRollingPolicy<E> TimeBasedRollingPolicyis both easy to configure and quite powerful.TriggeringPolicyBase<E> SizeBasedTriggeringPolicy looks at size of the file being currently written to. -
Exception Summary Exception Description RolloverFailure A RolloverFailure occurs if, for whatever reason a rollover fails.