Module ch.qos.logback.core
Package ch.qos.logback.core.rolling
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
.
-
ClassDescriptionDefault implementation of
TimeBasedFileNamingAndTriggeringPolicy
interface extendingTimeBasedFileNamingAndTriggeringPolicyBase
.When rolling over,FixedWindowRollingPolicy
renames files according to a fixed window algorithm.RollingFileAppender
extendsFileAppender
to back up the log files depending onRollingPolicy
andTriggeringPolicy
.ARollingPolicy
is responsible for performing the rolling over of the active log file.Implements methods common to most, it not all, rolling policies.A RolloverFailure occurs if, for whatever reason a rollover fails.This class implementTimeBasedFileNamingAndTriggeringPolicy
interface extendingTimeBasedFileNamingAndTriggeringPolicyBase
.SizeBasedTriggeringPolicy looks at size of the file being currently written to.This interface lists the set of methods that need to be implemented by triggering policies which are nested within aTimeBasedRollingPolicy
.Base implementation ofTimeBasedFileNamingAndTriggeringPolicy
.TimeBasedRollingPolicy
is both easy to configure and quite powerful.ATriggeringPolicy
controls the conditions under which roll-over occurs.SizeBasedTriggeringPolicy looks at size of the file being currently written to.