#include <fileappender.h>
Inheritance diagram for log4cplus::FileAppender:
Public Member Functions | |
FileAppender (const log4cplus::tstring &filename, LOG4CPLUS_OPEN_MODE_TYPE mode=LOG4CPLUS_FSTREAM_NAMESPACE::ios::trunc, bool immediateFlush=true) | |
FileAppender (const log4cplus::helpers::Properties &properties, LOG4CPLUS_OPEN_MODE_TYPE mode=LOG4CPLUS_FSTREAM_NAMESPACE::ios::trunc) | |
virtual | ~FileAppender () |
virtual void | close () |
Release any resources allocated within the appender such as file handles, network connections, etc. | |
Protected Member Functions | |
virtual void | append (const spi::InternalLoggingEvent &event) |
Protected Attributes | |
bool | immediateFlush |
Immediate flush means that the underlying writer or output stream will be flushed at the end of each append operation. | |
log4cplus::tofstream | out |
log4cplus::tstring | filename |
Definition at line 35 of file fileappender.h.
|
|
|
|
|
|
|
Reimplemented in log4cplus::RollingFileAppender, and log4cplus::DailyRollingFileAppender. |
|
Release any resources allocated within the appender such as file handles, network connections, etc. It is a programming error to append to a closed appender. Implements log4cplus::Appender. Reimplemented in log4cplus::DailyRollingFileAppender. |
|
Definition at line 69 of file fileappender.h. |
|
Immediate flush means that the underlying writer or output stream will be flushed at the end of each append operation.
Immediate flush is slower but ensures that each append request is actually written. If
The Definition at line 66 of file fileappender.h. |
|
Definition at line 68 of file fileappender.h. |