18 #ifndef _LOG4CXX_FILE_APPENDER_H 19 #define _LOG4CXX_FILE_APPENDER_H 28 #pragma warning ( push ) 29 #pragma warning ( disable: 4251 ) 96 bool bufferedIO,
int bufferSize);
128 virtual
void setFile(const
LogString& file);
133 inline
bool getAppend()
const 184 void setAppend(
bool fileAppend1);
195 void setBufferedIO(
bool bufferedIO);
202 this->bufferSize = bufferSize1;
236 void setFileInternal(
const LogString& file,
bool append,
237 bool bufferedIO,
size_t bufferSize,
240 void setFileInternal(
const LogString& file);
251 #if defined(_MSC_VER) 252 #pragma warning (pop) #define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:148
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:161
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:142
LOG4CXX_PTR_DEF(AppenderAttachableImpl)
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:136
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:42
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:39
std::shared_ptr< Layout > LayoutPtr
Definition: appender.h:47
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:154
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:139
void setBufferSize(int bufferSize1)
Set the size of the IO buffer.
Definition: fileappender.h:200
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66
int getBufferSize() const
Get the size of the IO buffer.
Definition: fileappender.h:169