log4cplus::RollingFileAppender Class Reference

RollingFileAppender extends FileAppender to backup the log files when they reach a certain size. More...

Inheritance diagram for log4cplus::RollingFileAppender:

log4cplus::FileAppender log4cplus::Appender log4cplus::helpers::SharedObject log4cplus::helpers::LogLogUser List of all members.

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)

Detailed Description

RollingFileAppender extends FileAppender to backup the log files when they reach a certain size.

Properties

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
This property limits the number of backup output files; e.g. how many log.1, log.2 etc. files will be kept.

Definition at line 146 of file fileap.h.


The documentation for this class was generated from the following file:


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1