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 java.lang.String |
ZIP_ENTRY_DATE_PATTERN |
compressionMode, fileNamePattern, fileNamePatternStr
context
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() |
determineCompressionMode, getCompressionMode, getFileNamePattern, getParentsRawFileProperty, isParentPrudent, isStarted, setFileNamePattern, setParent, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
public void start()
start
in interface LifeCycle
start
in class RollingPolicyBase
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 java.lang.String getActiveFileName()
public int getMaxIndex()
public int getMinIndex()
public void setMaxIndex(int maxIndex)
public void setMinIndex(int minIndex)