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

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

+ Inheritance diagram for dcmtk::log4cplus::RollingFileAppender:

List of all members.

Public Member Functions

 RollingFileAppender (const tstring &filename, long maxFileSize=10 *1024 *1024, int maxBackupIndex=1, bool immediateFlush=true)
 RollingFileAppender (const helpers::Properties &properties, 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.

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