10#ifndef _LOG4CPP_FILEAPPENDER_HH
11#define _LOG4CPP_FILEAPPENDER_HH
32 FileAppender(
const std::string& name,
const std::string& fileName,
33 bool append =
true, mode_t mode = 00644);
75 virtual void setMode(mode_t mode);
#define LOG4CPP_EXPORT
Definition Export.hh:26
FileAppender(const std::string &name, const std::string &fileName, bool append=true, mode_t mode=00644)
Constructs a FileAppender.
Definition FileAppender.cpp:27
const std::string _fileName
Definition FileAppender.hh:85
virtual void _append(const LoggingEvent &event)
Log in Appender specific way.
Definition FileAppender.cpp:79
mode_t _mode
Definition FileAppender.hh:88
int _fd
Definition FileAppender.hh:86
int _flags
Definition FileAppender.hh:87
virtual void setAppend(bool append)
Sets the append vs truncate flag.
Definition FileAppender.cpp:59
virtual void setMode(mode_t mode)
Sets the file open mode.
Definition FileAppender.cpp:71
virtual void close()
Closes the logfile.
Definition FileAppender.cpp:52
virtual mode_t getMode() const
Gets the file open mode.
Definition FileAppender.cpp:75
virtual bool reopen()
Reopens the logfile.
Definition FileAppender.cpp:86
virtual bool getAppend() const
Gets the value of the 'append' option.
Definition FileAppender.cpp:67
LayoutAppender(const std::string &name)
Definition LayoutAppender.cpp:15
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
The internal representation of logging events.
Definition LoggingEvent.hh:32