18#ifndef _LOG4CXX_HELPERS_APPENDER_ATTACHABLE_IMPL_H
19#define _LOG4CXX_HELPERS_APPENDER_ATTACHABLE_IMPL_H
24#include <log4cxx/log4cxx.h>
48#if LOG4CXX_ABI_VERSION <= 15
49 [[ deprecated(
"Pool is no longer required" ) ]]
116 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(priv_data, m_priv)
#define LOG4CXX_16_VIRTUAL_SPECIFIER
Definition appenderattachable.h:99
Definition appenderattachableimpl.h:39
void removeAppender(const AppenderPtr appender) override
Remove the appender passed as parameter from the list of appenders.
void removeAllAppenders() override
Remove all previously added appenders.
void addAppender(const AppenderPtr newAppender) override
Add an appender.
AppenderPtr getAppender(const LogString &name) const override
Get an appender by name.
AppenderAttachableImpl(Pool &pool)
AppenderAttachableImpl()
Create new instance.
AppenderList & appenderList()
bool isAttached(const AppenderPtr appender) const override
Returns true if the specified appender is in the list of attached appenders, false otherwise.
bool replaceAppender(const AppenderPtr &oldAppender, const AppenderPtr &newAppender) LOG4CXX_16_VIRTUAL_SPECIFIER
Replace oldAppender with newAppender.
void replaceAppenders(const AppenderList &newList) LOG4CXX_16_VIRTUAL_SPECIFIER
Replace any previously added appenders with newList.
int appendLoopOnAppenders(const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p)
Call the doAppend method on all attached appenders.
~AppenderAttachableImpl()
AppenderList getAllAppenders() const override
Get all previously added appenders as an Enumeration.
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
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:158
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition object.h:39
#define END_LOG4CXX_CAST_MAP()
Definition object.h:152
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:146