public abstract class RollingPolicyBase extends ContextAwareBase implements RollingPolicy
Modifier and Type | Field and Description |
---|---|
protected CompressionMode |
compressionMode |
protected String |
fileNamePatternStr |
context
Constructor and Description |
---|
RollingPolicyBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
determineCompressionMode()
Given the FileNamePattern string, this method determines the compression
mode depending on last letters of the fileNamePatternStr.
|
CompressionMode |
getCompressionMode()
The compression mode for this policy.
|
String |
getFileNamePattern() |
String |
getParentsRawFileProperty() |
boolean |
isParentPrudent() |
boolean |
isStarted() |
void |
setFileNamePattern(String fnp) |
void |
setParent(FileAppender<?> appender)
This method allows RollingPolicy implementations to be aware of their
containing appender.
|
void |
start() |
void |
stop() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActiveFileName, rollover
protected CompressionMode compressionMode
protected String fileNamePatternStr
protected void determineCompressionMode()
public void setFileNamePattern(String fnp)
public String getFileNamePattern()
public CompressionMode getCompressionMode()
RollingPolicy
getCompressionMode
in interface RollingPolicy
public void setParent(FileAppender<?> appender)
RollingPolicy
setParent
in interface RollingPolicy
public boolean isParentPrudent()
public String getParentsRawFileProperty()
Copyright © 2005–2021 QOS.ch. All rights reserved.