public abstract class RollingPolicyBase extends ContextAwareBaseimplements 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
|
void |
setParent(FileAppender
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, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetActiveFileName, rolloverprotected CompressionModecompressionMode
protected StringfileNamePatternStr
protected void determineCompressionMode()
public void setFileNamePattern(Stringfnp)
public StringgetFileNamePattern()
public CompressionModegetCompressionMode()
RollingPolicy
getCompressionMode in interface
RollingPolicy
public boolean isStarted()
public void start()
public void stop()
public void setParent(FileAppenderappender)
RollingPolicy
public boolean isParentPrudent()
public StringgetParentsRawFileProperty()