#include <AppenderAttachable.hh>
◆ AppenderAttachable() [1/2]
log4tango::AppenderAttachable::AppenderAttachable |
( |
| ) |
|
◆ ~AppenderAttachable()
log4tango::AppenderAttachable::~AppenderAttachable |
( |
| ) |
|
|
virtual |
◆ AppenderAttachable() [2/2]
◆ add_appender()
void log4tango::AppenderAttachable::add_appender |
( |
Appender * |
appender | ) |
|
Adds an Appender.
Does nothing if the appender is NULL or already attached.
◆ get_all_appenders()
AppenderList log4tango::AppenderAttachable::get_all_appenders |
( |
void |
| ) |
|
Get all previously added appenders as a vector.
The caller must call "release" on each Appender in the returned list when it is no longer needed (the Appender class is ref-counted).
◆ get_appender()
Appender * log4tango::AppenderAttachable::get_appender |
( |
const std::string & |
name | ) |
|
Get an appender by name.
The caller must call "release" on the returned Appender when it is no longer needed (the Appender class is ref-counted). Returns 0 if there is no Appender named "name" currently attached.
◆ is_attached()
bool log4tango::AppenderAttachable::is_attached |
( |
Appender * |
appender | ) |
|
Returns true if the specified appender is in list of attached appanders, false otherwise.
◆ operator=()
◆ remove_all_appenders()
void log4tango::AppenderAttachable::remove_all_appenders |
( |
| ) |
|
Removes all appenders for this Logger.
◆ remove_appender() [1/2]
void log4tango::AppenderAttachable::remove_appender |
( |
Appender * |
appender | ) |
|
Remove the appender passed as parameter from the list of appenders.
◆ remove_appender() [2/2]
void log4tango::AppenderAttachable::remove_appender |
( |
const std::string & |
name | ) |
|
Remove the appender with the name passed as parameter from the list of appenders.
◆ _appenders
◆ _appendersMutex
A mutex to protect the repository against race conditions.
The documentation for this class was generated from the following files: