DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
dcmtk::log4cplus::DailyRollingFileAppender Class Reference

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

+ Inheritance diagram for dcmtk::log4cplus::DailyRollingFileAppender:

List of all members.

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

DailyRollingFileSchedule schedule
tstring scheduledFilename
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.


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


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027