#include <DailyRollingFileAppender.hh>

Public Member Functions | |
| DailyRollingFileAppender (const std::string &name, const std::string &fileName, unsigned int maxDaysToKeep=maxDaysToKeepDefault, bool append=true, mode_t mode=00644) | |
| virtual unsigned int | getMaxDaysToKeep () const |
| virtual void | rollOver () |
| virtual void | setMaxDaysToKeep (unsigned int maxDaysToKeep) |
Public Member Functions inherited from log4cpp::FileAppender | |
| virtual void | close () |
| FileAppender (const std::string &name, const std::string &fileName, bool append=true, mode_t mode=00644) | |
| FileAppender (const std::string &name, int fd) | |
| virtual bool | getAppend () const |
| virtual mode_t | getMode () const |
| virtual bool | reopen () |
| virtual void | setAppend (bool append) |
| virtual void | setMode (mode_t mode) |
| virtual | ~FileAppender () |
Public Member Functions inherited from log4cpp::LayoutAppender | |
| LayoutAppender (const std::string &name) | |
| virtual bool | requiresLayout () const |
| virtual void | setLayout (Layout *layout=NULL) |
| virtual | ~LayoutAppender () |
Public Member Functions inherited from log4cpp::AppenderSkeleton | |
| virtual void | doAppend (const LoggingEvent &event) |
| virtual Filter * | getFilter () |
| virtual Priority::Value | getThreshold () |
| virtual void | setFilter (Filter *filter) |
| virtual void | setThreshold (Priority::Value priority) |
| virtual | ~AppenderSkeleton () |
Public Member Functions inherited from log4cpp::Appender | |
| const std::string & | getName () const |
| virtual | ~Appender () |
Static Public Attributes | |
| static unsigned int | maxDaysToKeepDefault = 30 |
Protected Member Functions | |
| virtual void | _append (const LoggingEvent &event) |
Protected Member Functions inherited from log4cpp::LayoutAppender | |
| Layout & | _getLayout () |
Protected Member Functions inherited from log4cpp::AppenderSkeleton | |
| AppenderSkeleton (const std::string &name) | |
Protected Member Functions inherited from log4cpp::Appender | |
| Appender (const std::string &name) | |
Protected Attributes | |
| struct tm | _logsTime |
| unsigned int | _maxDaysToKeep |
Protected Attributes inherited from log4cpp::FileAppender | |
| int | _fd |
| const std::string | _fileName |
| int | _flags |
| mode_t | _mode |
Additional Inherited Members | |
Public Types inherited from log4cpp::LayoutAppender | |
| typedef BasicLayout | DefaultLayoutType |
Static Public Member Functions inherited from log4cpp::Appender | |
| static void | closeAll () |
| static Appender * | getAppender (const std::string &name) |
| static bool | reopenAll () |
DailyRollingFileAppender is a FileAppender that rolls over the logfile once the next day starts.
Definition at line 22 of file DailyRollingFileAppender.hh.
| log4cpp::DailyRollingFileAppender::DailyRollingFileAppender | ( | const std::string & | name, |
| const std::string & | fileName, | ||
| unsigned int | maxDaysToKeep = maxDaysToKeepDefault, |
||
| bool | append = true, |
||
| mode_t | mode = 00644 |
||
| ) |
Definition at line 40 of file DailyRollingFileAppender.cpp.
|
protectedvirtual |
Log in Appender specific way. Subclasses of Appender should implement this method to perform actual logging.
| event | The LoggingEvent to log. |
Reimplemented from log4cpp::FileAppender.
Definition at line 142 of file DailyRollingFileAppender.cpp.
|
virtual |
Definition at line 69 of file DailyRollingFileAppender.cpp.
|
virtual |
Definition at line 73 of file DailyRollingFileAppender.cpp.
|
virtual |
Definition at line 65 of file DailyRollingFileAppender.cpp.
|
protected |
Definition at line 41 of file DailyRollingFileAppender.hh.
|
protected |
Definition at line 39 of file DailyRollingFileAppender.hh.
|
static |
Definition at line 35 of file DailyRollingFileAppender.hh.