Implements methods common to most, it not all, rolling policies.
More...
#include <rollingpolicybase.h>
Inherits RollingPolicy, and ObjectImpl.
Inherited by FixedWindowRollingPolicy, and TimeBasedRollingPolicy.
Implements methods common to most, it not all, rolling policies.
◆ RollingPolicyBase()
◆ ~RollingPolicyBase()
◆ 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 File
and Append
options both of which are ambigous until the other is also set.
Implements OptionHandler.
Implemented in FixedWindowRollingPolicy, and TimeBasedRollingPolicy.
◆ addRef()
◆ formatFileName()
Format file name.
- Parameters
-
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. |
p | memory pool. |
◆ getDatePatternConverter()
log4cxx::pattern::PatternConverterPtr getDatePatternConverter |
( |
| ) |
const |
|
protected |
◆ getFileNamePattern()
Get file name pattern.
- Returns
- file name pattern.
◆ getFormatSpecifiers()
◆ getIntegerPatternConverter()
log4cxx::pattern::PatternConverterPtr getIntegerPatternConverter |
( |
| ) |
const |
|
protected |
◆ parseFileNamePattern()
void parseFileNamePattern |
( |
| ) |
|
|
protected |
◆ releaseRef()
void releaseRef |
( |
| ) |
const |
|
virtual |
◆ setFileNamePattern()
void setFileNamePattern |
( |
const LogString & | fnp | ) |
|
Set file name pattern.
- Parameters
-
◆ setOption()
Set option
to value
.
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.
The documentation for this class was generated from the following file: