18#ifndef _LOG4CXX_ASYNC_APPENDER_H
19#define _LOG4CXX_ASYNC_APPENDER_H
87 struct AsyncAppenderPriv;
116 helpers::Pool& pool1) override;
#define LOG4CXX_16_VIRTUAL_SPECIFIER
Definition appenderattachable.h:99
AppenderSkeleton(LOG4CXX_PRIVATE_PTR(AppenderSkeletonPrivate) priv)
The AsyncAppender decouples logging event creation from output by processing log events asynchronousl...
Definition asyncappender.h:85
void setLocationInfo(bool flag)
The LocationInfo attribute is provided for compatibility with log4j and has no effect on the log outp...
AsyncAppender()
Create new instance.
void removeAllAppenders() override
Removes and closes all attached appenders.
void setOption(const LogString &option, const LogString &value) override
Set option to value.
void append(const spi::LoggingEventPtr &event, helpers::Pool &p) override
Subclasses of AppenderSkeleton should implement this method to perform actual logging.
bool requiresLayout() const override
Configurators call this method to determine if the appender requires a layout.
bool getBlocking() const
Gets whether appender should block calling thread when buffer is full.
void setBlocking(bool value)
Sets whether appender should wait if there is no space available in the event buffer or immediately r...
void replaceAppenders(const AppenderList &newList) LOG4CXX_16_VIRTUAL_SPECIFIER
Replace any previously added appenders with newList.
AppenderList getAllAppenders() const override
Get iterator over attached appenders.
void removeAppender(const AppenderPtr appender) override
Removes an appender.
void doAppend(const spi::LoggingEventPtr &event, helpers::Pool &pool1) override
This method performs threshold checks and invokes filters before delegating actual logging to the sub...
bool replaceAppender(const AppenderPtr &oldAppender, const AppenderPtr &newAppender) LOG4CXX_16_VIRTUAL_SPECIFIER
Replace oldAppender with newAppender.
AppenderPtr getAppender(const LogString &name) const override
Get appender by name.
void addAppender(const AppenderPtr newAppender) override
Ensure newAppender receives any logging event added to this appender.
int getBufferSize() const
Gets the current buffer size.
void close() override
Close this AsyncAppender by interrupting the dispatcher thread which will process all pending events ...
void setBufferSize(int size)
The BufferSize option takes a non-negative integer value.
bool isAttached(const AppenderPtr appender) const override
Determines if specified appender is attached.
bool getLocationInfo() const
The current value of the (unused) LocationInfo option.
This Interface is for attaching Appenders to objects.
Definition appenderattachable.h:33
Definition propertysetter.h:27
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition appender.h:32
LOG4CXX_LIST_DEF(AppenderList, AppenderPtr)
std::basic_string< logchar > LogString
Definition logstring.h:60
LOG4CXX_PTR_DEF(Appender)
std::shared_ptr< Appender > AppenderPtr
Definition basicconfigurator.h:29
#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