log4tango::AppenderAttachable(3) | log4tango | log4tango::AppenderAttachable(3) |
log4tango::AppenderAttachable
#include <AppenderAttachable.hh>
Inherited by log4tango::Logger.
AppenderAttachable ()
Constructor. virtual ~AppenderAttachable ()
Destructor. void add_appender (Appender *appender)
Adds an Appender. AppenderList get_all_appenders (void)
Get all previously added appenders as a vector. Appender *
get_appender (const std::string &name)
Get an appender by name. bool is_attached (Appender *appender)
Returns true if the specified appender is in list of attached appanders, false
otherwise. void remove_all_appenders ()
Removes all appenders for this Logger. void remove_appender
(Appender *appender)
Remove the appender passed as parameter from the list of appenders. void
remove_appender (const std::string &name)
Remove the appender with the name passed as parameter from the list of
appenders.
AppenderAttachable (const AppenderAttachable
&other)
AppenderAttachable & operator= (const
AppenderAttachable &other)
AppenderMap _appenders
Appenders repository. threading::Mutex _appendersMutex
A mutex to protect the repository against race conditions.
Constructor.
Destructor.
Adds an Appender. Does nothing if the appender is NULL or already attached.
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 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.
Returns true if the specified appender is in list of attached appanders, false otherwise.
Removes all appenders for this Logger.
Remove the appender passed as parameter from the list of appenders.
Remove the appender with the name passed as parameter from the list of appenders.
Appenders repository.
A mutex to protect the repository against race conditions.
Generated automatically by Doxygen for log4tango from the source code.
Fri Nov 11 2022 | Version 5.0.2 |