log4cplus_helpers_AppenderAttachableImpl(3)
| log4cplus::helpers::AppenderAttachableImpl(3) | log4cplus | log4cplus::helpers::AppenderAttachableImpl(3) |
NAME
log4cplus::helpers::AppenderAttachableImpl - This Interface is for attaching Appenders to objects.
SYNOPSIS
#include <appenderattachableimpl.h>
Inherits log4cplus::spi::AppenderAttachable.
Inherited by log4cplus::AsyncAppender, and log4cplus::spi::LoggerImpl.
Public Member Functions
AppenderAttachableImpl ()
virtual ~AppenderAttachableImpl ()
virtual void addAppender (SharedAppenderPtr newAppender)
Add an appender. virtual SharedAppenderPtrList getAllAppenders
()
Get all previously added appenders as an vectory. virtual
SharedAppenderPtr getAppender (const log4cplus::tstring
&name)
Look for an attached appender named as name. virtual void
removeAllAppenders ()
Remove all previously added appenders. virtual void removeAppender
(SharedAppenderPtr appender)
Remove the appender passed as parameter from the list of appenders. virtual
void removeAppender (const log4cplus::tstring &name)
Remove the appender with the name passed as parameter from the list of
appenders. int appendLoopOnAppenders (const
spi::InternalLoggingEvent &event) const
Call the doAppend method on all attached appenders.
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.
Detailed Description
This Interface is for attaching Appenders to objects.
Definition at line 48 of file appenderattachableimpl.h.
Member Typedef Documentation
typedef std::vector<SharedAppenderPtr> log4cplus::helpers::AppenderAttachableImpl::ListType [protected]
Definition at line 104 of file appenderattachableimpl.h.
Constructor & Destructor Documentation
log4cplus::helpers::AppenderAttachableImpl::AppenderAttachableImpl ()
virtual log4cplus::helpers::AppenderAttachableImpl::~AppenderAttachableImpl () [virtual]
Member Function Documentation
virtual void log4cplus::helpers::AppenderAttachableImpl::addAppender (SharedAppenderPtr newAppender) [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 SharedAppenderPtrList log4cplus::helpers::AppenderAttachableImpl::getAllAppenders () [virtual]
Get all previously added appenders as an vectory.
Implements log4cplus::spi::AppenderAttachable.
virtual SharedAppenderPtr log4cplus::helpers::AppenderAttachableImpl::getAppender (const log4cplus::tstring & name) [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 void log4cplus::helpers::AppenderAttachableImpl::removeAllAppenders () [virtual]
Remove all previously added appenders.
Implements log4cplus::spi::AppenderAttachable.
virtual void log4cplus::helpers::AppenderAttachableImpl::removeAppender (const log4cplus::tstring & name) [virtual]
Remove the appender with the name passed as parameter from the list of appenders.
Implements log4cplus::spi::AppenderAttachable.
virtual void log4cplus::helpers::AppenderAttachableImpl::removeAppender (SharedAppenderPtr appender) [virtual]
Remove the appender passed as parameter from the list of appenders.
Implements log4cplus::spi::AppenderAttachable.
Member Data Documentation
thread::Mutex log4cplus::helpers::AppenderAttachableImpl::appender_list_mutex
Definition at line 53 of file appenderattachableimpl.h.
ListType log4cplus::helpers::AppenderAttachableImpl::appenderList [protected]
Array of appenders.
Definition at line 108 of file appenderattachableimpl.h.
Author
Generated automatically by Doxygen for log4cplus from the source code.
| Mon Jun 5 2023 21:46:10 | Version 2.0.7 |
