log4cplus  2.1.0
Public Member Functions | List of all members
log4cplus::HierarchyLocker Class Reference

This is used to lock a Hierarchy. More...

#include <hierarchylocker.h>

Public Member Functions

 HierarchyLocker (Hierarchy &h)
 
 ~HierarchyLocker () LOG4CPLUS_NOEXCEPT_FALSE
 
void resetConfiguration ()
 Calls the resetConfiguration() method on the locked Hierarchy. More...
 
Logger getInstance (const log4cplus::tstring &name)
 Calls the getInstance() method on the locked Hierarchy. More...
 
Logger getInstance (const log4cplus::tstring &name, spi::LoggerFactory &factory)
 Calls the getInstance() method on the locked Hierarchy. More...
 
void addAppender (Logger &logger, log4cplus::SharedAppenderPtr &appender)
 

Detailed Description

This is used to lock a Hierarchy.

The dtor unlocks the Hierarchy.

Definition at line 47 of file hierarchylocker.h.

Constructor & Destructor Documentation

◆ HierarchyLocker()

log4cplus::HierarchyLocker::HierarchyLocker ( Hierarchy h)

◆ ~HierarchyLocker()

log4cplus::HierarchyLocker::~HierarchyLocker ( )

Member Function Documentation

◆ addAppender()

void log4cplus::HierarchyLocker::addAppender ( Logger logger,
log4cplus::SharedAppenderPtr appender 
)

◆ getInstance() [1/2]

Logger log4cplus::HierarchyLocker::getInstance ( const log4cplus::tstring name)

Calls the getInstance() method on the locked Hierarchy.

◆ getInstance() [2/2]

Logger log4cplus::HierarchyLocker::getInstance ( const log4cplus::tstring name,
spi::LoggerFactory factory 
)

Calls the getInstance() method on the locked Hierarchy.

◆ resetConfiguration()

void log4cplus::HierarchyLocker::resetConfiguration ( )

Calls the resetConfiguration() method on the locked Hierarchy.


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