|
log4cplus
2.1.0
|
This Interface is for attaching Appenders to objects. More...
#include <appenderattachableimpl.h>
Public Member Functions | |
| AppenderAttachableImpl () | |
| virtual | ~AppenderAttachableImpl () |
| virtual void | addAppender (SharedAppenderPtr newAppender) |
| Add an appender. More... | |
| virtual SharedAppenderPtrList | getAllAppenders () |
| Get all previously added appenders as an vectory. More... | |
| virtual SharedAppenderPtr | getAppender (const log4cplus::tstring &name) |
Look for an attached appender named as name. More... | |
| virtual void | removeAllAppenders () |
| Remove all previously added appenders. More... | |
| virtual void | removeAppender (SharedAppenderPtr appender) |
| Remove the appender passed as parameter from the list of appenders. More... | |
| virtual void | removeAppender (const log4cplus::tstring &name) |
| Remove the appender with the name passed as parameter from the list of appenders. More... | |
| int | appendLoopOnAppenders (const spi::InternalLoggingEvent &event) const |
Call the doAppend method on all attached appenders. More... | |
Public Member Functions inherited from log4cplus::spi::AppenderAttachable | |
| virtual | ~AppenderAttachable ()=0 |
Public Attributes | |
| thread::Mutex | appender_list_mutex |
Protected Types | |
| typedef std::vector< SharedAppenderPtr > | ListType |
Protected Attributes | |
| ListType | appenderList |
| Array of appenders. More... | |
This Interface is for attaching Appenders to objects.
Definition at line 48 of file appenderattachableimpl.h.
|
protected |
Definition at line 104 of file appenderattachableimpl.h.
| log4cplus::helpers::AppenderAttachableImpl::AppenderAttachableImpl | ( | ) |
|
virtual |
|
virtual |
Add an appender.
If the appender is already in the list in won't be added again.
Implements log4cplus::spi::AppenderAttachable.
| int log4cplus::helpers::AppenderAttachableImpl::appendLoopOnAppenders | ( | const spi::InternalLoggingEvent & | event | ) | const |
Call the doAppend method on all attached appenders.
|
virtual |
Get all previously added appenders as an vectory.
Implements log4cplus::spi::AppenderAttachable.
|
virtual |
Look for an attached appender named as name.
Return the appender with that name if in the list. Return null otherwise.
Implements log4cplus::spi::AppenderAttachable.
|
virtual |
Remove all previously added appenders.
Implements log4cplus::spi::AppenderAttachable.
|
virtual |
Remove the appender with the name passed as parameter from the list of appenders.
Implements log4cplus::spi::AppenderAttachable.
|
virtual |
Remove the appender passed as parameter from the list of appenders.
Implements log4cplus::spi::AppenderAttachable.
| thread::Mutex log4cplus::helpers::AppenderAttachableImpl::appender_list_mutex |
Definition at line 53 of file appenderattachableimpl.h.
|
protected |
Array of appenders.
Definition at line 108 of file appenderattachableimpl.h.