19 #if !defined(_LOG4CXX_ROLLING_TIME_BASED_ROLLING_POLICY_H)
20 #define _LOG4CXX_ROLLING_TIME_BASED_ROLLING_POLICY_H
30 #pragma warning ( push )
31 #pragma warning ( disable: 4251 )
160 log4cxx_time_t nextCheck;
180 apr_file_t* _file_map;
185 std::string _mapFileName;
190 apr_file_t* _lock_file;
200 bool bAlreadyInitialized;
205 bool bRefreshCurFile;
221 #ifdef LOG4CXX_MULTI_PROCESS
242 int lockMMapFile(
int type);
247 int unLockMMapFile();
252 const std::string createFile(
const std::string& filename,
const std::string& suffix,
log4cxx::helpers::Pool& pool);
298 #if defined(_MSC_VER)
299 #pragma warning ( pop )
Implement this interface for your own strategies for outputting log statements.
Definition: appender.h:57
Implements methods common to most, it not all, rolling policies.
Definition: rollingpolicybase.h:52
TimeBasedRollingPolicy is both easy to configure and quite powerful.
Definition: timebasedrollingpolicy.h:148
log4cxx::pattern::PatternMap getFormatSpecifiers() const
virtual bool isTriggeringEvent(Appender *appender, const log4cxx::spi::LoggingEventPtr &event, const LogString &filename, size_t fileLength)
Determines if a rollover may be appropriate at this time.
RolloverDescriptionPtr initialize(const LogString ¤tActiveFile, const bool append, log4cxx::helpers::Pool &pool)
Initialize the policy and return any initial actions for rolling file appender.current value of Rolli...
RolloverDescriptionPtr rollover(const LogString ¤tActiveFile, const bool append, log4cxx::helpers::Pool &pool)
Prepare for a rollover.This method is called prior to closing the active log file,...
void activateOptions(log4cxx::helpers::Pool &)
Activate the options that were previously set with calls to option setters.
A TriggeringPolicy controls the conditions under which rollover occurs.
Definition: triggeringpolicy.h:47
std::map< LogString, PatternConstructor > PatternMap
Definition: patternparser.h:41
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:37
Definition: appender.h:33
std::basic_string< logchar > LogString
Definition: logstring.h:66
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:153
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:147
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:39
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:159
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:141