18#ifndef _LOG4CXX_WRITER_APPENDER_H
19#define _LOG4CXX_WRITER_APPENDER_H
39 struct WriterAppenderPriv;
52 log4cxx::helpers::WriterPtr& writer);
63 void activateOptions(helpers::Pool& pool) override;
79 void setImmediateFlush(
bool value);
83 bool getImmediateFlush() const;
97 void append(const spi::LoggingEventPtr& event, helpers::Pool& p) override;
107 virtual
bool checkEntryConditions() const;
117 void close() override;
131 virtual helpers::WriterPtr createWriter(helpers::OutputStreamPtr& os);
168 void setWriter(const
log4cxx::helpers::WriterPtr& writer);
170 const
log4cxx::helpers::WriterPtr getWriter() const;
172 bool requiresLayout() const override;
178 virtual
void subAppend(const spi::LoggingEventPtr& event,
log4cxx::helpers::Pool& p);
184 virtual
void writeFooter(
log4cxx::helpers::Pool& p);
189 virtual
void writeHeader(
log4cxx::helpers::Pool& p);
194 void setWriterInternal(const
log4cxx::helpers::WriterPtr& writer);
Implementation base class for all appenders.
Definition: appenderskeleton.h:41
WriterAppender appends log events to a standard output stream.
Definition: writerappender.h:37
Definition: configuration.h:25
std::basic_string< logchar > LogString
Definition: logstring.h:60
std::shared_ptr< Layout > LayoutPtr
Definition: appender.h:42
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:157
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:38
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:151
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:163
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:145