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#FixedWindowRollingPolicyModifier and Type | Field and Description |
---|---|
static String |
ZIP_ENTRY_DATE_PATTERN |
compressionMode, fileNamePatternStr
context
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, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
public static final String ZIP_ENTRY_DATE_PATTERN
public void start()
start
in interface LifeCycle
start
in class RollingPolicyBase
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 String getActiveFileName()
public int getMaxIndex()
public int getMinIndex()
public void setMaxIndex(int maxIndex)
public void setMinIndex(int minIndex)
Copyright © 2005–2021 QOS.ch. All rights reserved.