RollingFileAppender is a FileAppender that rolls over the logfile once it has reached a certain size limit. More...
#include <RollingFileAppender.hh>
Public Member Functions | |
virtual unsigned int | getMaxBackupIndex () const |
virtual size_t | getMaxFileSize () const |
RollingFileAppender (const std::string &name, const std::string &fileName, size_t maxFileSize=10 *1024 *1024, unsigned int maxBackupIndex=1, bool append=true, mode_t mode=00644) | |
virtual void | rollOver () |
virtual void | setMaxBackupIndex (unsigned int maxBackups) |
virtual void | setMaximumFileSize (size_t maxFileSize) |
Protected Member Functions | |
virtual void | _append (const LoggingEvent &event) |
Log in Appender specific way. | |
Protected Attributes | |
unsigned int | _maxBackupIndex |
unsigned short int | _maxBackupIndexWidth |
size_t | _maxFileSize |
Private Member Functions | |
RollingFileAppender & | operator= (const RollingFileAppender &) |
RollingFileAppender is a FileAppender that rolls over the logfile once it has reached a certain size limit.
Definition at line 22 of file RollingFileAppender.hh.
RollingFileAppender::RollingFileAppender | ( | const std::string & | name, |
const std::string & | fileName, | ||
size_t | maxFileSize = 10 *1024 *1024 , |
||
unsigned int | maxBackupIndex = 1 , |
||
bool | append = true , |
||
mode_t | mode = 00644 |
||
) |
virtual void RollingFileAppender::_append | ( | const LoggingEvent & | event | ) | [protected, virtual] |
Log in Appender specific way.
Subclasses of Appender should implement this method to perform actual logging.
event | The LoggingEvent to log. |
Reimplemented from FileAppender.
virtual unsigned int RollingFileAppender::getMaxBackupIndex | ( | ) | const [virtual] |
virtual size_t RollingFileAppender::getMaxFileSize | ( | ) | const [virtual] |
RollingFileAppender& RollingFileAppender::operator= | ( | const RollingFileAppender & | ) | [private] |
virtual void RollingFileAppender::rollOver | ( | ) | [virtual] |
virtual void RollingFileAppender::setMaxBackupIndex | ( | unsigned int | maxBackups | ) | [virtual] |
virtual void RollingFileAppender::setMaximumFileSize | ( | size_t | maxFileSize | ) | [virtual] |
unsigned int RollingFileAppender::_maxBackupIndex [protected] |
Definition at line 41 of file RollingFileAppender.hh.
unsigned short int RollingFileAppender::_maxBackupIndexWidth [protected] |
Definition at line 42 of file RollingFileAppender.hh.
size_t RollingFileAppender::_maxFileSize [protected] |
Definition at line 44 of file RollingFileAppender.hh.