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.
-
Interface SummaryInterfaceDescriptionA
RollingPolicyis responsible for performing the rolling over of the active log file.This interface lists the set of methods that need to be implemented by triggering policies which are nested within aTimeBasedRollingPolicy.ATriggeringPolicycontrols the conditions under which roll-over occurs. -
Class SummaryClassDescriptionWhen rolling over,
FixedWindowRollingPolicyrenames files according to a fixed window algorithm.RollingFileAppenderextendsFileAppenderto backup the log files depending onRollingPolicyandTriggeringPolicy.Implements methods common to most, it not all, rolling policies.SizeBasedTriggeringPolicy looks at size of the file being currently written to.TimeBasedRollingPolicyis both easy to configure and quite powerful.SizeBasedTriggeringPolicy looks at size of the file being currently written to. -
Exception SummaryExceptionDescriptionA RolloverFailure occurs if, for whatever reason a rollover fails.