Apache log4cxx  Version 0.11.0
log4cxx::helpers::AppenderAttachableImpl Class Reference
Inheritance diagram for log4cxx::helpers::AppenderAttachableImpl:
log4cxx::spi::AppenderAttachable log4cxx::helpers::ObjectImpl log4cxx::helpers::Object log4cxx::helpers::Object

Public Member Functions

 AppenderAttachableImpl (Pool &pool)
 Create new instance. More...
 
void addRef () const
 
void releaseRef () const
 
virtual void addAppender (const AppenderPtr &newAppender)
 Add an appender.
 
int appendLoopOnAppenders (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p)
 Call the doAppend method on all attached appenders.
 
virtual AppenderList getAllAppenders () const
 Get all previously added appenders as an Enumeration.
 
virtual AppenderPtr getAppender (const LogString &name) const
 Get an appender by name.
 
virtual bool isAttached (const AppenderPtr &appender) const
 Returns true if the specified appender is in the list of attached appenders, false otherwise.
 
virtual void removeAllAppenders ()
 Remove all previously added appenders.
 
virtual void removeAppender (const AppenderPtr &appender)
 Remove the appender passed as parameter from the list of appenders.
 
virtual void removeAppender (const LogString &name)
 Remove the appender with the name passed as parameter from the list of appenders.
 
const log4cxx::helpers::MutexgetMutex () const
 
- Public Member Functions inherited from log4cxx::helpers::Object
virtual bool instanceof (const Class &clazz) const =0
 
virtual const void * cast (const Class &clazz) const =0
 
- Public Member Functions inherited from log4cxx::helpers::ObjectImpl
void addRef () const
 
void releaseRef () const
 

Protected Attributes

AppenderList appenderList
 Array of appenders. More...
 
- Protected Attributes inherited from log4cxx::helpers::ObjectImpl
unsigned int volatile ref
 

Constructor & Destructor Documentation

◆ AppenderAttachableImpl()

log4cxx::helpers::AppenderAttachableImpl::AppenderAttachableImpl ( Pool pool)

Create new instance.

Parameters
poolpool, must be longer-lived than instance.

Member Data Documentation

◆ appenderList

AppenderList log4cxx::helpers::AppenderAttachableImpl::appenderList
protected

Array of appenders.


The documentation for this class was generated from the following file: