log4cpp::RollingFileAppender Class Reference
#include <RollingFileAppender.hh>
List of all members.
Public Member Functions |
virtual unsigned int | getMaxBackupIndex () const |
virtual unsigned int | getMaxBackupIndex () const |
virtual size_t | getMaxFileSize () 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) |
| 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 | rollOver () |
virtual void | setMaxBackupIndex (unsigned int maxBackups) |
virtual void | setMaxBackupIndex (unsigned int maxBackups) |
virtual void | setMaximumFileSize (size_t maxFileSize) |
virtual void | setMaximumFileSize (size_t maxFileSize) |
Protected Member Functions |
virtual void | _append (const LoggingEvent &event) |
virtual void | _append (const LoggingEvent &event) |
Protected Attributes |
unsigned int | _maxBackupIndex |
size_t | _maxFileSize |
Detailed Description
RollingFileAppender is a FileAppender that rolls over the logfile once it has reached a certain size limit.
- Since:
- 0.3.1
Definition at line 19 of file include/log4cpp/RollingFileAppender.hh.
Constructor & Destructor Documentation
log4cpp::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 | |
|
) |
| | |
log4cpp::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 | |
|
) |
| | |
Member Function Documentation
virtual void log4cpp::RollingFileAppender::_append |
( |
const LoggingEvent & |
event |
) |
[protected, virtual] |
void log4cpp::RollingFileAppender::_append |
( |
const LoggingEvent & |
event |
) |
[protected, virtual] |
virtual unsigned int log4cpp::RollingFileAppender::getMaxBackupIndex |
( |
|
) |
const [virtual] |
unsigned int log4cpp::RollingFileAppender::getMaxBackupIndex |
( |
|
) |
const [virtual] |
virtual size_t log4cpp::RollingFileAppender::getMaxFileSize |
( |
|
) |
const [virtual] |
size_t log4cpp::RollingFileAppender::getMaxFileSize |
( |
|
) |
const [virtual] |
virtual void log4cpp::RollingFileAppender::rollOver |
( |
|
) |
[virtual] |
void log4cpp::RollingFileAppender::rollOver |
( |
|
) |
[virtual] |
virtual void log4cpp::RollingFileAppender::setMaxBackupIndex |
( |
unsigned int |
maxBackups |
) |
[virtual] |
void log4cpp::RollingFileAppender::setMaxBackupIndex |
( |
unsigned int |
maxBackups |
) |
[virtual] |
virtual void log4cpp::RollingFileAppender::setMaximumFileSize |
( |
size_t |
maxFileSize |
) |
[virtual] |
void log4cpp::RollingFileAppender::setMaximumFileSize |
( |
size_t |
maxFileSize |
) |
[virtual] |
Member Data Documentation
The documentation for this class was generated from the following files: