Apache Log4cxx
Version 1.5.0
|
#include <appenderattachableimpl.h>
Public Member Functions | |
AppenderAttachableImpl () | |
Create new instance. | |
AppenderAttachableImpl (Pool &pool) | |
~AppenderAttachableImpl () | |
void | addAppender (const AppenderPtr newAppender) override |
Add an appender. | |
int | appendLoopOnAppenders (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p) |
Call the doAppend method on all attached appenders. | |
AppenderList | getAllAppenders () const override |
Get all previously added appenders as an Enumeration. | |
AppenderPtr | getAppender (const LogString &name) const override |
Get an appender by name. | |
bool | isAttached (const AppenderPtr appender) const override |
Returns true if the specified appender is in the list of attached appenders, false otherwise. | |
void | removeAllAppenders () override |
Remove all previously added appenders. | |
void | removeAppender (const AppenderPtr appender) override |
Remove the appender passed as parameter from the list of appenders. | |
void | removeAppender (const LogString &name) override |
Remove the appender with the name passed as parameter from the list of appenders. | |
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 . | |
Public Member Functions inherited from log4cxx::spi::AppenderAttachable | |
virtual | ~AppenderAttachable () |
Public Member Functions inherited from log4cxx::helpers::Object | |
virtual | ~Object () |
virtual const helpers::Class & | getClass () const =0 |
virtual bool | instanceof (const Class &clazz) const =0 |
virtual const void * | cast (const Class &clazz) const =0 |
Protected Member Functions | |
AppenderList & | appenderList () |
log4cxx::helpers::AppenderAttachableImpl::AppenderAttachableImpl | ( | ) |
Create new instance.
log4cxx::helpers::AppenderAttachableImpl::AppenderAttachableImpl | ( | Pool & | pool | ) |
log4cxx::helpers::AppenderAttachableImpl::~AppenderAttachableImpl | ( | ) |
|
overridevirtual |
Add an appender.
Implements log4cxx::spi::AppenderAttachable.
|
protected |
int log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders | ( | const spi::LoggingEventPtr & | event, |
log4cxx::helpers::Pool & | p ) |
Call the doAppend
method on all attached appenders.
|
overridevirtual |
Get all previously added appenders as an Enumeration.
Implements log4cxx::spi::AppenderAttachable.
|
overridevirtual |
Get an appender by name.
Implements log4cxx::spi::AppenderAttachable.
|
overridevirtual |
Returns true
if the specified appender is in the list of attached appenders, false
otherwise.
Implements log4cxx::spi::AppenderAttachable.
|
overridevirtual |
Remove all previously added appenders.
Implements log4cxx::spi::AppenderAttachable.
|
overridevirtual |
Remove the appender passed as parameter from the list of appenders.
Implements log4cxx::spi::AppenderAttachable.
|
overridevirtual |
Remove the appender with the name passed as parameter from the list of appenders.
Implements log4cxx::spi::AppenderAttachable.
bool log4cxx::helpers::AppenderAttachableImpl::replaceAppender | ( | const AppenderPtr & | oldAppender, |
const AppenderPtr & | newAppender ) |
Replace oldAppender
with newAppender
.
void log4cxx::helpers::AppenderAttachableImpl::replaceAppenders | ( | const AppenderList & | newList | ) |
Replace any previously added appenders with newList
.