18#if !defined(_LOG4CXX_ROLLING_FIXED_WINDOW_ROLLING_POLICY_H)
19#define _LOG4CXX_ROLLING_FIXED_WINDOW_ROLLING_POLICY_H
79 struct FixedWindowRollingPolicyPrivate;
84 enum { MAX_WINDOW_SIZE = 12 };
When rolling over, FixedWindowRollingPolicy renames files according to a fixed window algorithm as de...
Definition: fixedwindowrollingpolicy.h:72
RolloverDescriptionPtr initialize(const LogString ¤tActiveFile, const bool append, helpers::Pool &pool) override
Initialize the policy and return any initial actions for rolling file appender.Description of the ini...
log4cxx::pattern::PatternMap getFormatSpecifiers() const override
A map from "i" and "index" to a integer conversion formatter.
RolloverDescriptionPtr rollover(const LogString ¤tActiveFile, const bool append, helpers::Pool &pool) override
Prepare for a rollover.This method is called prior to closing the active log file,...
void setMaxIndex(int newVal)
~FixedWindowRollingPolicy()
FixedWindowRollingPolicy()
void activateOptions(helpers::Pool &p) override
Activate the options that were previously set with calls to option setters.
void setMinIndex(int newVal)
void setOption(const LogString &option, const LogString &value) override
Set option to value.
Implements methods common to most, it not all, rolling policies.
Definition: rollingpolicybase.h:46
std::map< LogString, PatternConstructor > PatternMap
Definition: patternparser.h:35
Definition: configuration.h:25
std::basic_string< logchar > LogString
Definition: logstring.h:60
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:157
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:151
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:42
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:163
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:145