|
Log4j 1.3alpha-1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.rolling.RollingPolicySkeleton
Implements methods common to most, it not all, rolling policies. Currently such methods are limited to a compression mode getter/setter.
Field Summary | |
protected java.lang.String |
activeFileName
|
protected int |
compressionMode
|
protected FileNamePattern |
fileNamePattern
|
protected java.lang.String |
fileNamePatternStr
|
Constructor Summary | |
RollingPolicySkeleton()
|
Method Summary | |
abstract void |
activateOptions()
Activate the options that were previously set with calls to option setters. |
protected void |
determineCompressionMode()
Given the FileNamePattern string, this method determines the compression mode depending on last letters of the fileNamePatternStr. |
java.lang.String |
getFileNamePattern()
|
protected Logger |
getLogger()
Return an instance specific logger to be used by the policy itself. |
void |
setActiveFileName(java.lang.String afn)
ActiveFileName can be left unset, i.e. as null. |
void |
setFileNamePattern(java.lang.String fnp)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.log4j.rolling.RollingPolicy |
getActiveFileName, rollover |
Field Detail |
protected int compressionMode
protected FileNamePattern fileNamePattern
protected java.lang.String fileNamePatternStr
protected java.lang.String activeFileName
Constructor Detail |
public RollingPolicySkeleton()
Method Detail |
public abstract void activateOptions()
OptionHandler
This allows to defer activiation of the options until all options have been set. This is required for components which have related options that remain ambigous until all are set.
For example, the FileAppender has the File
and Append
options both of
which are ambigous until the other is also set.
activateOptions
in interface OptionHandler
protected void determineCompressionMode()
public void setFileNamePattern(java.lang.String fnp)
public java.lang.String getFileNamePattern()
public void setActiveFileName(java.lang.String afn)
RollingPolicy.getActiveFileName()
protected Logger getLogger()
|
Log4j 1.3alpha-1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |