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 };
86 bool purge(
int purgeStart,
int maxIndex, LOG4CXX_NS::helpers::Pool& p)
const;
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::basic_string< logchar > LogString
Definition: logstring.h:60
LOG4CXX_PTR_DEF(Appender)
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:158
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:152
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:43
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:164
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:146