Apache Log4cxx  Version 1.3.0
Loading...
Searching...
No Matches
log4cxx::helpers::AppenderAttachableImpl Class Reference

#include <appenderattachableimpl.h>

Inheritance diagram for log4cxx::helpers::AppenderAttachableImpl:
log4cxx::spi::AppenderAttachable log4cxx::helpers::Object

Public Member Functions

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

Protected Member Functions

AppenderList & appenderList ()
 

Constructor & Destructor Documentation

◆ AppenderAttachableImpl() [1/2]

log4cxx::helpers::AppenderAttachableImpl::AppenderAttachableImpl ( )

Create new instance.

◆ AppenderAttachableImpl() [2/2]

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

◆ ~AppenderAttachableImpl()

log4cxx::helpers::AppenderAttachableImpl::~AppenderAttachableImpl ( )

Member Function Documentation

◆ addAppender()

void log4cxx::helpers::AppenderAttachableImpl::addAppender ( const AppenderPtr  newAppender)
overridevirtual

Add an appender.

Implements log4cxx::spi::AppenderAttachable.

◆ appenderList()

AppenderList & log4cxx::helpers::AppenderAttachableImpl::appenderList ( )
protected

◆ appendLoopOnAppenders()

int log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders ( const spi::LoggingEventPtr event,
log4cxx::helpers::Pool p 
)

Call the doAppend method on all attached appenders.

◆ getAllAppenders()

AppenderList log4cxx::helpers::AppenderAttachableImpl::getAllAppenders ( ) const
overridevirtual

Get all previously added appenders as an Enumeration.

Implements log4cxx::spi::AppenderAttachable.

◆ getAppender()

AppenderPtr log4cxx::helpers::AppenderAttachableImpl::getAppender ( const LogString name) const
overridevirtual

Get an appender by name.

Implements log4cxx::spi::AppenderAttachable.

◆ isAttached()

bool log4cxx::helpers::AppenderAttachableImpl::isAttached ( const AppenderPtr  appender) const
overridevirtual

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

Implements log4cxx::spi::AppenderAttachable.

◆ removeAllAppenders()

void log4cxx::helpers::AppenderAttachableImpl::removeAllAppenders ( )
overridevirtual

Remove all previously added appenders.

Implements log4cxx::spi::AppenderAttachable.

◆ removeAppender() [1/2]

void log4cxx::helpers::AppenderAttachableImpl::removeAppender ( const AppenderPtr  appender)
overridevirtual

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

Implements log4cxx::spi::AppenderAttachable.

◆ removeAppender() [2/2]

void log4cxx::helpers::AppenderAttachableImpl::removeAppender ( const LogString name)
overridevirtual

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

Implements log4cxx::spi::AppenderAttachable.


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