18 #ifndef _LOG4CXX_FILE_APPENDER_H 19 #define _LOG4CXX_FILE_APPENDER_H 21 #include <log4cxx/logger.h> 22 #include <log4cxx/logstring.h> 23 #include <log4cxx/writerappender.h> 24 #include <log4cxx/file.h> 25 #include <log4cxx/helpers/pool.h> 28 #pragma warning ( push ) 29 #pragma warning ( disable: 4251 ) 72 BEGIN_LOG4CXX_CAST_MAP()
75 END_LOG4CXX_CAST_MAP()
95 FileAppender(const
LayoutPtr& layout, const LogString& filename,
bool append,
96 bool bufferedIO,
int bufferSize);
107 FileAppender(const
LayoutPtr& layout, const LogString& filename,
bool append);
115 FileAppender(const
LayoutPtr& layout, const LogString& filename);
128 virtual
void setFile(const LogString& file);
148 virtual
void setFile(const LogString& file,
bool append,
149 bool bufferedIO,
size_t bufferSize,
155 inline
bool getAppend()
const 173 void setOption(
const LogString& option,
174 const LogString& value);
206 void setAppend(
bool fileAppend1);
217 void setBufferedIO(
bool bufferedIO);
224 this->bufferSize = bufferSize1;
233 static LogString stripDuplicateBackslashes(
const LogString& name);
244 #if defined(_MSC_VER) 245 #pragma warning (pop) bool fileAppend
Append to or truncate the file? The default value for this variable is true, meaning that by default ...
Definition: fileappender.h:56
bool getBufferedIO() const
Get the value of the BufferedIO option.
Definition: fileappender.h:183
FileAppender appends log events to a file.
Definition: fileappender.h:46
int bufferSize
How big should the IO buffer be? Default is 8K.
Definition: fileappender.h:68
WriterAppender appends log events to a standard output stream.
Definition: writerappender.h:40
LogString fileName
The name of the log file.
Definition: fileappender.h:60
bool bufferedIO
Do we do bufferedIO?
Definition: fileappender.h:64
LogString getFile() const
Returns the value of the File option.
Definition: fileappender.h:161
void setBufferSize(int bufferSize1)
Set the size of the IO buffer.
Definition: fileappender.h:222
Definition: appender.h:33
int getBufferSize() const
Get the size of the IO buffer.
Definition: fileappender.h:191