Package ch.qos.logback.core.rolling
Class FixedWindowRollingPolicy
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.rolling.RollingPolicyBase
-
- ch.qos.logback.core.rolling.FixedWindowRollingPolicy
-
- All Implemented Interfaces:
RollingPolicy,ContextAware,LifeCycle
public class FixedWindowRollingPolicy extends RollingPolicyBase
When rolling over,FixedWindowRollingPolicyrenames files according to a fixed window algorithm. For more information about this policy, please refer to the online manual at http://logback.qos.ch/manual/appenders.html#FixedWindowRollingPolicy
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringZIP_ENTRY_DATE_PATTERN
-
Constructor Summary
Constructors Constructor Description FixedWindowRollingPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetActiveFileName()Return the value of the parent's RawFile property.intgetMaxIndex()intgetMinIndex()voidrollover()Rolls over log files according to implementation policy.voidsetMaxIndex(int maxIndex)voidsetMinIndex(int minIndex)voidstart()-
Methods inherited from class ch.qos.logback.core.rolling.RollingPolicyBase
getCompressionMode, getFileNamePattern, getParentsRawFileProperty, isParentPrudent, isStarted, setFileNamePattern, setParent, stop
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
-
-
-
Field Detail
-
ZIP_ENTRY_DATE_PATTERN
public static final java.lang.String ZIP_ENTRY_DATE_PATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceLifeCycle- Overrides:
startin classRollingPolicyBase
-
rollover
public void rollover() throws RolloverFailureDescription copied from interface:RollingPolicyRolls over log files according to implementation policy.This method is invoked by
RollingFileAppender, usually at the behest of itsTriggeringPolicy.- Throws:
RolloverFailure- Thrown if the rollover operation fails for any reason.
-
getActiveFileName
public java.lang.String getActiveFileName()
Return the value of the parent's RawFile property.
-
getMaxIndex
public int getMaxIndex()
-
getMinIndex
public int getMinIndex()
-
setMaxIndex
public void setMaxIndex(int maxIndex)
-
setMinIndex
public void setMinIndex(int minIndex)
-
-