$search

log4cpp::RollingFileAppender Class Reference

#include <RollingFileAppender.hh>

Inheritance diagram for log4cpp::RollingFileAppender:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual unsigned int getMaxBackupIndex () const
virtual size_t getMaxFileSize () const
 RollingFileAppender (const std::string &name, const std::string &fileName, size_t maxFileSize=10 *1024 *1024, unsigned int maxBackupIndex=1, bool append=true, mode_t mode=00644)
virtual void rollOver ()
virtual void setMaxBackupIndex (unsigned int maxBackups)
virtual void setMaximumFileSize (size_t maxFileSize)

Protected Member Functions

virtual void _append (const LoggingEvent &event)

Protected Attributes

unsigned int _maxBackupIndex
size_t _maxFileSize

Detailed Description

RollingFileAppender is a FileAppender that rolls over the logfile once it has reached a certain size limit.

Since:
0.3.1

Definition at line 22 of file RollingFileAppender.hh.


Constructor & Destructor Documentation

log4cpp::RollingFileAppender::RollingFileAppender ( const std::string &  name,
const std::string &  fileName,
size_t  maxFileSize = 10*1024*1024,
unsigned int  maxBackupIndex = 1,
bool  append = true,
mode_t  mode = 00644 
)

Definition at line 30 of file RollingFileAppender.cpp.


Member Function Documentation

void log4cpp::RollingFileAppender::_append ( const LoggingEvent event  )  [protected, virtual]

Log in Appender specific way. Subclasses of Appender should implement this method to perform actual logging.

Parameters:
event The LoggingEvent to log.

Reimplemented from log4cpp::FileAppender.

Definition at line 81 of file RollingFileAppender.cpp.

unsigned int log4cpp::RollingFileAppender::getMaxBackupIndex (  )  const [virtual]

Definition at line 45 of file RollingFileAppender.cpp.

size_t log4cpp::RollingFileAppender::getMaxFileSize (  )  const [virtual]

Definition at line 53 of file RollingFileAppender.cpp.

void log4cpp::RollingFileAppender::rollOver (  )  [virtual]

Definition at line 57 of file RollingFileAppender.cpp.

void log4cpp::RollingFileAppender::setMaxBackupIndex ( unsigned int  maxBackups  )  [virtual]

Definition at line 41 of file RollingFileAppender.cpp.

void log4cpp::RollingFileAppender::setMaximumFileSize ( size_t  maxFileSize  )  [virtual]

Definition at line 49 of file RollingFileAppender.cpp.


Member Data Documentation

Definition at line 41 of file RollingFileAppender.hh.

Definition at line 42 of file RollingFileAppender.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


log4cpp
Author(s): Stephen Roderick
autogenerated on Fri Mar 1 16:23:51 2013