Apache log4cxx  Version 0.12.0
log4cxx::spi::AppenderAttachable Class Referenceabstract

This Interface is for attaching Appenders to objects. More...

#include <appenderattachable.h>

Inheritance diagram for log4cxx::spi::AppenderAttachable:
log4cxx::helpers::Object log4cxx::AsyncAppender log4cxx::helpers::AppenderAttachableImpl log4cxx::Logger log4cxx::spi::RootLogger

Public Member Functions

virtual void addAppender (const AppenderPtr newAppender)=0
 Add an appender. More...
 
virtual AppenderList getAllAppenders () const =0
 Get all previously added appenders as an AppenderList. More...
 
virtual AppenderPtr getAppender (const LogString &name) const =0
 Get an appender by name. More...
 
virtual bool isAttached (const AppenderPtr appender) const =0
 Returns true if the specified appender is in list of attached appenders, false otherwise. More...
 
virtual void removeAllAppenders ()=0
 Remove all previously added appenders. More...
 
virtual void removeAppender (const AppenderPtr appender)=0
 Remove the appender passed as parameter from the list of appenders. More...
 
virtual void removeAppender (const LogString &name)=0
 Remove the appender with the name passed as parameter from the list of appenders. More...
 
virtual ~AppenderAttachable ()
 
- Public Member Functions inherited from log4cxx::helpers::Object
virtual ~Object ()
 
virtual bool instanceof (const Class &clazz) const =0
 
virtual const void * cast (const Class &clazz) const =0
 

Detailed Description

This Interface is for attaching Appenders to objects.

Constructor & Destructor Documentation

◆ ~AppenderAttachable()

virtual log4cxx::spi::AppenderAttachable::~AppenderAttachable ( )
inlinevirtual

Member Function Documentation

◆ addAppender()

virtual void log4cxx::spi::AppenderAttachable::addAppender ( const AppenderPtr  newAppender)
pure virtual

◆ getAllAppenders()

virtual AppenderList log4cxx::spi::AppenderAttachable::getAllAppenders ( ) const
pure virtual

Get all previously added appenders as an AppenderList.

Implemented in log4cxx::Logger, log4cxx::AsyncAppender, and log4cxx::helpers::AppenderAttachableImpl.

◆ getAppender()

virtual AppenderPtr log4cxx::spi::AppenderAttachable::getAppender ( const LogString name) const
pure virtual

◆ isAttached()

virtual bool log4cxx::spi::AppenderAttachable::isAttached ( const AppenderPtr  appender) const
pure virtual

Returns true if the specified appender is in list of attached appenders, false otherwise.

Implemented in log4cxx::Logger, log4cxx::AsyncAppender, and log4cxx::helpers::AppenderAttachableImpl.

◆ removeAllAppenders()

virtual void log4cxx::spi::AppenderAttachable::removeAllAppenders ( )
pure virtual

Remove all previously added appenders.

Implemented in log4cxx::Logger, log4cxx::AsyncAppender, and log4cxx::helpers::AppenderAttachableImpl.

◆ removeAppender() [1/2]

virtual void log4cxx::spi::AppenderAttachable::removeAppender ( const AppenderPtr  appender)
pure virtual

Remove the appender passed as parameter from the list of appenders.

Implemented in log4cxx::Logger, log4cxx::AsyncAppender, and log4cxx::helpers::AppenderAttachableImpl.

◆ removeAppender() [2/2]

virtual void log4cxx::spi::AppenderAttachable::removeAppender ( const LogString name)
pure virtual

Remove the appender with the name passed as parameter from the list of appenders.

Implemented in log4cxx::Logger, log4cxx::AsyncAppender, and log4cxx::helpers::AppenderAttachableImpl.


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