|
Apache Log4cxx
Version 1.5.0
|
Go to the documentation of this file.
18 #if !defined(_LOG4CXX_ROLLING_ROLLING_POLICY_BASE_H)
19 #define _LOG4CXX_ROLLING_ROLLING_POLICY_BASE_H
54 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(RollingPolicyBasePrivate, m_priv)
virtual pattern::PatternMap getFormatSpecifiers() const =0
A map from a name to the object implementing the (date or index) formatting.
std::basic_string< logchar > LogString
Definition: logstring.h:60
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:146
RollingPolicyBase(LOG4CXX_PRIVATE_PTR(RollingPolicyBasePrivate) priv)
std::shared_ptr< FormattingInfo > FormattingInfoPtr
Definition: formattinginfo.h:31
void activateOptions(helpers::Pool &p) override
Activate the options that were previously set with calls to option setters.
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:152
A string based interface to configure package components.
Definition: optionhandler.h:35
void setCreateIntermediateDirectories(bool createIntermediate)
PatternConverterList getPatternConverterList() const
void setOption(const LogString &option, const LogString &value) override
Set option to value.
log4cxx::pattern::PatternConverterPtr getIntegerPatternConverter() const
virtual ~RollingPolicyBase()
bool getCreateIntermediateDirectories() const
LOG4CXX_LIST_DEF(FormattingInfoList, log4cxx::pattern::FormattingInfoPtr)
void formatFileName(const helpers::ObjectPtr &obj, LogString &buf, helpers::Pool &p) const
Format file name.
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:39
LOG4CXX_PTR_DEF(RollingPolicyBase)
LogString getFileNamePattern() const
Get file name pattern.
void parseFileNamePattern()
Parse file name pattern.
std::map< LogString, PatternConstructor > PatternMap
Definition: patternparser.h:35
log4cxx::pattern::PatternConverterPtr getDatePatternConverter() const
base class for java-like objects.
Definition: object.h:106
A RollingPolicy is responsible for performing the rolling over of the active log file.
Definition: rollingpolicy.h:43
void setFileNamePattern(const LogString &fnp)
Set file name pattern.
Implements methods common to most, it not all, rolling policies.
Definition: rollingpolicybase.h:46
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:158