19 #if !defined(_LOG4CXX_ROLLING_TIME_BASED_ROLLING_POLICY_H) 20 #define _LOG4CXX_ROLLING_TIME_BASED_ROLLING_POLICY_H 22 #include <log4cxx/portability.h> 23 #include <log4cxx/rolling/rollingpolicybase.h> 24 #include <log4cxx/rolling/triggeringpolicy.h> 25 #include <log4cxx/writerappender.h> 26 #include <log4cxx/helpers/outputstream.h> 30 #pragma warning ( push ) 31 #pragma warning ( disable: 4251 ) 150 BEGIN_LOG4CXX_CAST_MAP()
154 END_LOG4CXX_CAST_MAP()
160 log4cxx_time_t nextCheck;
165 LogString lastFileName;
180 apr_file_t* _file_map;
185 std::string _mapFileName;
190 apr_file_t* _lock_file;
200 bool bAlreadyInitialized;
205 bool bRefreshCurFile;
210 LogString _fileNamePattern;
220 void releaseRef()
const;
223 #ifdef LOG4CXX_MULTI_PROCESS 244 int lockMMapFile(
int type);
249 int unLockMMapFile();
254 const std::string createFile(
const std::string& filename,
const std::string& suffix,
log4cxx::helpers::Pool& pool);
260 RolloverDescriptionPtr initialize(
261 const LogString& currentActiveFile,
268 RolloverDescriptionPtr rollover(
269 const LogString& currentActiveFile,
284 virtual bool isTriggeringEvent(
287 const LogString& filename,
291 log4cxx::pattern::PatternMap getFormatSpecifiers()
const;
300 #if defined(_MSC_VER) 301 #pragma warning ( pop ) A TriggeringPolicy controls the conditions under which rollover occurs.
Definition: triggeringpolicy.h:44
Implement this interface for your own strategies for outputting log statements.
Definition: appender.h:56
TimeBasedRollingPolicy is both easy to configure and quite powerful.
Definition: timebasedrollingpolicy.h:146
Definition: appender.h:33
Implements methods common to most, it not all, rolling policies.
Definition: rollingpolicybase.h:49