18#ifndef _LOG4CXX_ASYNC_APPENDER_H
19#define _LOG4CXX_ASYNC_APPENDER_H
26#include <condition_variable>
28#if defined(NON_BLOCKING)
29 #include <boost/lockfree/queue.hpp>
55 struct AsyncAppenderPriv;
82 void doAppend(const spi::LoggingEventPtr& event,
83 helpers::Pool& pool1) override;
85 void append(const spi::LoggingEventPtr& event, helpers::Pool& p) override;
92 void close() override;
98 AppenderList getAllAppenders() const override;
114 bool getLocationInfo() const;
122 bool requiresLayout() const override;
127 void removeAllAppenders() override;
145 void setLocationInfo(
bool flag);
152 void setBufferSize(
int size);
158 int getBufferSize() const;
166 void setBlocking(
bool value);
175 bool getBlocking() const;
Implementation base class for all appenders.
Definition: appenderskeleton.h:41
The AsyncAppender lets users log events asynchronously.
Definition: asyncappender.h:53
This Interface is for attaching Appenders to objects.
Definition: appenderattachable.h:34
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:32
Definition: configuration.h:25
LOG4CXX_LIST_DEF(AppenderList, AppenderPtr)
std::basic_string< logchar > LogString
Definition: logstring.h:60
std::shared_ptr< Appender > AppenderPtr
Definition: basicconfigurator.h:29
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:157
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:151
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:42
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:163
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:145