18#ifndef _LOG4CXX_FILE_APPENDER_H
19#define _LOG4CXX_FILE_APPENDER_H
44 struct FileAppenderPriv;
72 bool bufferedIO,
int bufferSize);
219 bool bufferedIO,
size_t bufferSize,
FileAppender appends log events to a file.
Definition fileappender.h:42
void setOption(const LogString &option, const LogString &value) override
Set option to value.
int getBufferSize() const
Get the size of the IO buffer.
LogString getFile() const
Returns the value of the File option.
void setAppend(bool fileAppend1)
The Append option takes a boolean value.
void setBufferSize(int bufferSize1)
Set the size of the IO buffer.
static LogString stripDuplicateBackslashes(const LogString &name)
Replaces double backslashes with single backslashes for compatibility with paths from earlier XML con...
void activateOptions(helpers::Pool &p) override
Activate the options that were previously set with calls to option setters.
FileAppender()
The default constructor does not do anything.
void setFileInternal(const LogString &file, bool append, bool bufferedIO, size_t bufferSize, log4cxx::helpers::Pool &p)
Sets and opens the file where the log output will go.
bool getBufferedIO() const
Get the value of the BufferedIO option.
void activateOptionsInternal(log4cxx::helpers::Pool &p)
bool getAppend() const
Returns the value of the Append option.
virtual void setFile(const LogString &file)
The File property takes a string value which should be the name of the file to append to.
void setBufferedIO(bool bufferedIO)
The BufferedIO option takes a boolean value.
void append(const spi::LoggingEventPtr &event, helpers::Pool &p) override
This method is called by the AppenderSkeleton::doAppend method.
WriterAppender()
This default constructor does nothing.
Definition propertysetter.h:27
std::basic_string< logchar > LogString
Definition logstring.h:60
std::shared_ptr< Layout > LayoutPtr
Definition appender.h:42
LOG4CXX_PTR_DEF(Appender)
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:158
#define END_LOG4CXX_CAST_MAP()
Definition object.h:152
#define DECLARE_LOG4CXX_OBJECT(object)
Definition object.h:43
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition object.h:164
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:146