log4cplus::DailyRollingFileAppender Class Reference

DailyRollingFileAppender extends FileAppender so that the underlying file is rolled over at a user chosen frequency. More...

Inheritance diagram for log4cplus::DailyRollingFileAppender:

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

Public Member Functions

 DailyRollingFileAppender (const log4cplus::tstring &filename, DailyRollingFileSchedule schedule=DAILY, bool immediateFlush=true, int maxBackupIndex=10)
 DailyRollingFileAppender (const log4cplus::helpers::Properties &properties, log4cplus::tstring &error)
virtual void close ()

Protected Member Functions

virtual void append (const spi::InternalLoggingEvent &event)
void rollover ()
log4cplus::helpers::Time calculateNextRolloverTime (const log4cplus::helpers::Time &t) const
log4cplus::tstring getFilename (const log4cplus::helpers::Time &t) const

Protected Attributes

DailyRollingFileSchedule schedule
log4cplus::tstring scheduledFilename
log4cplus::helpers::Time nextRolloverTime
int maxBackupIndex

Private Member Functions

void init (DailyRollingFileSchedule schedule)

Detailed Description

DailyRollingFileAppender extends FileAppender so that the underlying file is rolled over at a user chosen frequency.

Properties

Properties additional to FileAppender's properties:

Schedule
This property specifies rollover schedule. The possible values are MONTHLY, WEEKLY, DAILY, TWICE_DAILY, HOURLY and MINUTELY.

MaxBackupIndex
This property limits how many backup files are kept per single logging period; e.g. how many log.2009-11-07.1, log.2009-11-07.2 etc. files are kept.

Definition at line 196 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