OFFIS DCMTK
Version 3.6.0
|
RollingFileAppender extends FileAppender to backup the log files when they reach a certain size. More...
Public Member Functions | |
RollingFileAppender (const log4cplus::tstring &filename, long maxFileSize=10 *1024 *1024, int maxBackupIndex=1, bool immediateFlush=true) | |
RollingFileAppender (const log4cplus::helpers::Properties &properties, log4cplus::tstring &error) | |
Protected Member Functions | |
virtual void | append (const spi::InternalLoggingEvent &event) |
void | rollover () |
Protected Attributes | |
long | maxFileSize |
int | maxBackupIndex |
Private Member Functions | |
void | init (long maxFileSize, int maxBackupIndex) |
RollingFileAppender extends FileAppender to backup the log files when they reach a certain size.
Properties additional to FileAppender's properties:
MaxFileSize
This property specifies maximal size of output file. The value is in bytes. It is possible to use MB
and KB
suffixes to specify the value in megabytes or kilobytes instead.
MaxBackupIndex
log.1
, log.2
etc. files will be kept.