Inherited by FixedWindowRollingPolicy, and TimeBasedRollingPolicy.
Public Member Functions | |
RollingPolicyBase () | |
virtual | ~RollingPolicyBase () |
void | addRef () const |
void | releaseRef () const |
virtual void | activateOptions (log4cxx::helpers::Pool &p)=0 |
Activate the options that were previously set with calls to option setters. | |
virtual log4cxx::pattern::PatternMap | getFormatSpecifiers () const =0 |
virtual void | setOption (const LogString &option, const LogString &value) |
Set option to value . | |
void | setFileNamePattern (const LogString &fnp) |
Set file name pattern. | |
LogString | getFileNamePattern () const |
Get file name pattern. | |
Protected Member Functions | |
void | parseFileNamePattern () |
Parse file name pattern. | |
void | formatFileName (log4cxx::helpers::ObjectPtr &obj, LogString &buf, log4cxx::helpers::Pool &p) const |
Format file name. | |
log4cxx::pattern::PatternConverterPtr | getIntegerPatternConverter () const |
log4cxx::pattern::PatternConverterPtr | getDatePatternConverter () const |
|
|
|
|
|
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 File and Append options both of which are ambigous until the other is also set. Implements OptionHandler. Implemented in FixedWindowRollingPolicy, and TimeBasedRollingPolicy. |
|
Reimplemented from ObjectImpl. Reimplemented in TimeBasedRollingPolicy. |
|
Format file name.
|
|
|
|
Get file name pattern.
|
|
Implemented in FixedWindowRollingPolicy, and TimeBasedRollingPolicy. |
|
|
|
Parse file name pattern.
|
|
Reimplemented from ObjectImpl. Reimplemented in TimeBasedRollingPolicy. |
|
Set file name pattern.
|
|
Set The handling of each option depends on the OptionHandler instance. Some options may become active immediately whereas other may be activated only when activateOptions is called. Implements OptionHandler. Reimplemented in FixedWindowRollingPolicy. |