|
Apache log4cxx Version 0.13.0
|
#include <appenderattachableimpl.h>
Public Member Functions | |
| AppenderAttachableImpl (Pool &pool) | |
| Create new instance. More... | |
| virtual void | addAppender (const AppenderPtr newAppender) |
| Add an appender. More... | |
| int | appendLoopOnAppenders (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p) |
Call the doAppend method on all attached appenders. More... | |
| virtual AppenderList | getAllAppenders () const |
| Get all previously added appenders as an Enumeration. More... | |
| virtual AppenderPtr | getAppender (const LogString &name) const |
| Get an appender by name. More... | |
| virtual bool | isAttached (const AppenderPtr appender) const |
Returns true if the specified appender is in the list of attached appenders, false otherwise. More... | |
| virtual void | removeAllAppenders () |
| Remove all previously added appenders. More... | |
| virtual void | removeAppender (const AppenderPtr appender) |
| Remove the appender passed as parameter from the list of appenders. More... | |
| virtual void | removeAppender (const LogString &name) |
| Remove the appender with the name passed as parameter from the list of appenders. More... | |
| std::mutex & | getMutex () const |
Public Member Functions inherited from log4cxx::spi::AppenderAttachable | |
| virtual void | addAppender (const AppenderPtr newAppender)=0 |
| Add an appender. More... | |
| virtual AppenderList | getAllAppenders () const =0 |
| Get all previously added appenders as an AppenderList. More... | |
| virtual AppenderPtr | getAppender (const LogString &name) const =0 |
| Get an appender by name. More... | |
| virtual bool | isAttached (const AppenderPtr appender) const =0 |
Returns true if the specified appender is in list of attached appenders, false otherwise. More... | |
| virtual void | removeAllAppenders ()=0 |
| Remove all previously added appenders. More... | |
| virtual void | removeAppender (const AppenderPtr appender)=0 |
| Remove the appender passed as parameter from the list of appenders. More... | |
| virtual void | removeAppender (const LogString &name)=0 |
| Remove the appender with the name passed as parameter from the list of appenders. More... | |
| virtual | ~AppenderAttachable () |
Public Member Functions inherited from log4cxx::helpers::Object | |
| virtual | ~Object () |
| virtual bool | instanceof (const Class &clazz) const =0 |
| virtual const void * | cast (const Class &clazz) const =0 |
Protected Attributes | |
| AppenderList | appenderList |
| Array of appenders. More... | |
| log4cxx::helpers::AppenderAttachableImpl::AppenderAttachableImpl | ( | Pool & | pool | ) |
Create new instance.
| pool | pool, must be longer-lived than instance. |
|
virtual |
Add an appender.
Implements log4cxx::spi::AppenderAttachable.
| int log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders | ( | const spi::LoggingEventPtr & | event, |
| log4cxx::helpers::Pool & | p | ||
| ) |
Call the doAppend method on all attached appenders.
|
virtual |
Get all previously added appenders as an Enumeration.
Implements log4cxx::spi::AppenderAttachable.
|
virtual |
Get an appender by name.
Implements log4cxx::spi::AppenderAttachable.
|
inline |
|
virtual |
Returns true if the specified appender is in the list of attached appenders, false otherwise.
Implements log4cxx::spi::AppenderAttachable.
|
virtual |
Remove all previously added appenders.
Implements log4cxx::spi::AppenderAttachable.
|
virtual |
Remove the appender passed as parameter from the list of appenders.
Implements log4cxx::spi::AppenderAttachable.
|
virtual |
Remove the appender with the name passed as parameter from the list of appenders.
Implements log4cxx::spi::AppenderAttachable.
|
protected |
Array of appenders.