|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.spi.ComponentBase
org.apache.log4j.rolling.RollingPolicyBase
Implements methods common to most, it not all, rolling policies. Currently such methods are limited to a compression mode getter/setter.
Field Summary | |
protected String |
activeFileName
Active file name may be null. |
Fields inherited from class org.apache.log4j.spi.ComponentBase |
repository |
Constructor Summary | |
RollingPolicyBase()
|
Method Summary | |
void |
activateOptions()
Activate the options that were previously set with calls to option setters. 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 |
protected void |
formatFileName(Object obj,
StringBuffer buf)
Format file name. |
String |
getActiveFileName()
Deprecated. Duplicates FileAppender.file and should be removed |
protected PatternConverter |
getDatePatternConverter()
|
String |
getFileNamePattern()
Get file name pattern. |
protected PatternConverter |
getIntegerPatternConverter()
|
protected void |
parseFileNamePattern()
Parse file name pattern. |
void |
setActiveFileName(String afn)
Deprecated. Duplicates FileAppender.file and should be removed |
void |
setFileNamePattern(String fnp)
Set file name pattern. |
Methods inherited from class org.apache.log4j.spi.ComponentBase |
getLogger, getLoggerRepository, getNonFloodingLogger, resetErrorCount, setLoggerRepository |
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 |
initialize, rollover |
Field Detail |
protected String activeFileName
Constructor Detail |
public RollingPolicyBase()
Method Detail |
public void activateOptions()
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
public void setFileNamePattern(String fnp)
fnp
- file name pattern.public String getFileNamePattern()
public void setActiveFileName(String afn)
afn
- active file name.public String getActiveFileName()
protected final void parseFileNamePattern()
protected final void formatFileName(Object obj, StringBuffer buf)
obj
- object to be evaluted in formatting, may not be null.buf
- string buffer to which formatted file name is appended, may not be null.protected final PatternConverter getDatePatternConverter()
protected final PatternConverter getIntegerPatternConverter()
|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |