public class FixedWindowRollingPolicy extends RollingPolicyBase
FixedWindowRollingPolicy renames 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| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ZIP_ENTRY_DATE_PATTERN |
| Constructor and Description |
|---|
FixedWindowRollingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getActiveFileName()
Return the value of the parent's RawFile property.
|
int |
getMaxIndex() |
int |
getMinIndex() |
void |
rollover()
Rolls over log files according to implementation policy.
|
void |
setMaxIndex(int maxIndex) |
void |
setMinIndex(int minIndex) |
void |
start() |
getCompressionMode, getFileNamePattern, getParentsRawFileProperty, isParentPrudent, isStarted, setFileNamePattern, setParent, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContextpublic static final java.lang.String ZIP_ENTRY_DATE_PATTERN
public void start()
start in interface LifeCyclestart in class RollingPolicyBasepublic void rollover()
throws RolloverFailure
RollingPolicyThis method is invoked by RollingFileAppender, usually at the
behest of its TriggeringPolicy.
RolloverFailure - Thrown if the rollover operation fails for any reason.public java.lang.String getActiveFileName()
public int getMaxIndex()
public int getMinIndex()
public void setMaxIndex(int maxIndex)
public void setMinIndex(int minIndex)
Copyright © 2010 - 2023 Adobe. All Rights Reserved