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 String |
ZIP_ENTRY_DATE_PATTERN
|
compressionMode, fileNamePatternStrcontext| Constructor and Description |
|---|
FixedWindowRollingPolicy()
|
| Modifier and Type | Method and Description |
|---|---|
String |
getActiveFileName()
Return the value of the parent's RawFile property.
|
int |
getMaxIndex()
|
protected int |
getMaxWindowSize()
Subclasses can override this method to increase the max window size, if required.
|
int |
getMinIndex()
|
void |
rollover()
Rolls over log files according to implementation policy.
|
void |
setMaxIndex(int maxIndex)
|
void |
setMinIndex(int minIndex)
|
void |
start()
|
determineCompressionMode, getCompressionMode, getFileNamePattern, getParentsRawFileProperty, isParentPrudent, isStarted, setFileNamePattern, setParent, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic static final StringZIP_ENTRY_DATE_PATTERN
public void start()
protected int getMaxWindowSize()
public void rollover()
throws RolloverFailure
RollingPolicy
This method is invoked by RollingFileAppender, usually at the behest of its TriggeringPolicy.
RolloverFailure - Thrown if the rollover operation fails for any reason.
public StringgetActiveFileName()
public int getMaxIndex()
public int getMinIndex()
public void setMaxIndex(int maxIndex)
public void setMinIndex(int minIndex)