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)
const;
87#if LOG4CXX_ABI_VERSION <= 15
88 bool purge(
int lowIndex,
int highIndex,
helpers::Pool& pool)
const;
When rolling over, FixedWindowRollingPolicy renames files according to a fixed window algorithm as de...
Definition fixedwindowrollingpolicy.h:72
log4cxx::pattern::PatternMap getFormatSpecifiers() const override
A map from "i" and "index" to a integer conversion formatter.
RolloverDescriptionPtr rollover(const LogString ¤tActiveFile, bool append, helpers::Pool &p) override
The pool parameter is not used and will be removed in a future version. Implement this method for now...
RolloverDescriptionPtr initialize(const LogString ¤tActiveFile, bool append, helpers::Pool &p) override
The pool parameter is not used and will be removed in a future version. Implement this method for now...
void setMaxIndex(int newVal)
~FixedWindowRollingPolicy()
FixedWindowRollingPolicy()
void activateOptions(helpers::Pool &p) override
void setMinIndex(int newVal)
void setOption(const LogString &option, const LogString &value) override
Set option to value.
void activateOptions(helpers::Pool &p) override
RolloverDescriptionPtr rollover(const LogString ¤tActiveFile, bool append)
Prepare for a rollover.
RolloverDescriptionPtr initialize(const LogString ¤tActiveFile, bool append)
Initialize the policy and return any initial actions for rolling file appender.
std::basic_string< logchar > LogString
Definition logstring.h:60
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:154
#define END_LOG4CXX_CAST_MAP()
Definition object.h:148
#define DECLARE_LOG4CXX_OBJECT(object)
Definition object.h:41
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition object.h:160
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:142
#define LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS
Activate the options that were previously set with calls to option setters.
Definition optionhandler.h:53
#define LOG4CXX_ROLLING_POLICY_INITIALIZE_FORMAL_PARAMETERS
Definition rollingpolicy.h:67
#define LOG4CXX_ROLLING_POLICY_ROLLOVER_FORMAL_PARAMETERS
Definition rollingpolicy.h:99