18 #ifndef _LOG4CXX_WRITER_APPENDER_H 19 #define _LOG4CXX_WRITER_APPENDER_H 22 #pragma warning ( push ) 23 #pragma warning ( disable: 4231 4251 4275 4786 ) 28 #include <log4cxx/boost-std-configuration.h> 58 std::atomic<bool> immediateFlush;
70 log4cxx::helpers::WriterPtr writer;
85 log4cxx::helpers::WriterPtr& writer);
111 void setImmediateFlush(
bool value);
117 return immediateFlush;
142 virtual bool checkEntryConditions()
const;
152 virtual void close();
166 virtual log4cxx::helpers::WriterPtr createWriter(
167 log4cxx::helpers::OutputStreamPtr& os);
171 void setEncoding(
const LogString& value);
187 void setWriter(
const log4cxx::helpers::WriterPtr& writer);
188 #ifdef LOG4CXX_MULTI_PROCESS 189 const log4cxx::helpers::WriterPtr getWriter()
195 virtual bool requiresLayout()
const;
217 void setWriterInternal(
const log4cxx::helpers::WriterPtr& writer);
230 #if defined(_MSC_VER) 231 #pragma warning ( pop ) 234 #endif //_LOG4CXX_WRITER_APPENDER_H #define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:26
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:148
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:142
Implementation base class for all appenders.
Definition: appenderskeleton.h:43
LOG4CXX_PTR_DEF(AppenderAttachableImpl)
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:37
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:136
WriterAppender appends log events to a standard output stream.
Definition: writerappender.h:42
std::shared_ptr< Layout > LayoutPtr
Definition: appender.h:47
bool getImmediateFlush() const
Returns value of the ImmediateFlush option.
Definition: writerappender.h:115
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:154
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66