log4cpp::DailyRollingFileAppender(3) | log4cpp | log4cpp::DailyRollingFileAppender(3) |
NAME¶
log4cpp::DailyRollingFileAppender - DailyRollingFileAppender is a FileAppender that rolls over the logfile once the next day starts.
SYNOPSIS¶
#include <DailyRollingFileAppender.hh>
Inherits log4cpp::FileAppender.
Public Member Functions¶
DailyRollingFileAppender (const std::string &name,
const std::string &fileName, unsigned int
maxDaysToKeep=maxDaysToKeepDefault, bool append=true, mode_t
mode=00644)
virtual void setMaxDaysToKeep (unsigned int maxDaysToKeep)
virtual unsigned int getMaxDaysToKeep () const
virtual void rollOver ()
Static Public Attributes¶
static unsigned int maxDaysToKeepDefault = 30
Protected Member Functions¶
virtual void _append (const LoggingEvent &event)
Log in Appender specific way.
Protected Attributes¶
unsigned int _maxDaysToKeep
struct tm _logsTime
Additional Inherited Members¶
Detailed Description¶
DailyRollingFileAppender is a FileAppender that rolls over the logfile once the next day starts.
Since:
Constructor & Destructor Documentation¶
log4cpp::DailyRollingFileAppender::DailyRollingFileAppender (const std::string & name, const std::string & fileName, unsigned int maxDaysToKeep = maxDaysToKeepDefault, bool append = true, mode_t mode = 00644)¶
Member Function Documentation¶
void log4cpp::DailyRollingFileAppender::_append (const LoggingEvent & event) [protected], [virtual]¶
Log in Appender specific way. Subclasses of Appender should implement this method to perform actual logging.
Parameters:
Reimplemented from log4cpp::FileAppender.
unsigned int log4cpp::DailyRollingFileAppender::getMaxDaysToKeep () const [virtual]¶
void log4cpp::DailyRollingFileAppender::rollOver () [virtual]¶
void log4cpp::DailyRollingFileAppender::setMaxDaysToKeep (unsigned int maxDaysToKeep) [virtual]¶
Member Data Documentation¶
struct tm log4cpp::DailyRollingFileAppender::_logsTime [protected]¶
unsigned int log4cpp::DailyRollingFileAppender::_maxDaysToKeep [protected]¶
unsigned int log4cpp::DailyRollingFileAppender::maxDaysToKeepDefault = 30 [static]¶
Author¶
Generated automatically by Doxygen for log4cpp from the source code.
Fri Dec 28 2018 | Version 1.1 |