18#ifndef _LOG4CXX_WRITER_APPENDER_H
19#define _LOG4CXX_WRITER_APPENDER_H
34 struct WriterAppenderPriv;
91 void append( const
spi::LoggingEventPtr& event ) override;
AppenderSkeleton(LOG4CXX_PRIVATE_PTR(AppenderSkeletonPrivate) priv)
WriterAppender appends log events to a standard output stream.
Definition writerappender.h:32
void activateOptions() override
Derived appenders should override this method if option structure requires it.
LogString getEncoding() const
The current encoding value.
void setOption(const LogString &option, const LogString &value) override
Set option to value.
virtual void subAppend(const spi::LoggingEventPtr &event)
Actual writing occurs here.
void setImmediateFlush(bool value)
If the ImmediateFlush option is set to true, the appender will flush at the end of each write.
void append(const spi::LoggingEventPtr &event) override
This method is called by the AppenderSkeleton::doAppend method.
bool requiresLayout() const override
Configurators call this method to determine if the appender requires a layout.
bool getImmediateFlush() const
Returns value of the ImmediateFlush option.
void close() override
Close this appender instance.
virtual bool checkEntryConditions() const
This method determines if there is a sense in attempting to append.
void setEncoding(const LogString &value)
Set the encoding to value.
WriterAppender()
This default constructor does nothing.
virtual helpers::WriterPtr createWriter(const helpers::OutputStreamPtr &os)
Returns an OutputStreamWriter when passed an OutputStream.
Definition propertysetter.h:27
std::basic_string< logchar > LogString
Definition logstring.h:51
std::shared_ptr< Layout > LayoutPtr
Definition appender.h:42
LOG4CXX_PTR_DEF(Appender)
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:154
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition object.h:37
#define END_LOG4CXX_CAST_MAP()
Definition object.h:148
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition object.h:160
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:142