log4cplus
2.1.0
|
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) |
This is used to lock a Hierarchy.
The dtor unlocks the Hierarchy.
Definition at line 47 of file hierarchylocker.h.
log4cplus::HierarchyLocker::HierarchyLocker | ( | Hierarchy & | h | ) |
log4cplus::HierarchyLocker::~HierarchyLocker | ( | ) |
void log4cplus::HierarchyLocker::addAppender | ( | Logger & | logger, |
log4cplus::SharedAppenderPtr & | appender | ||
) |
Logger log4cplus::HierarchyLocker::getInstance | ( | const log4cplus::tstring & | name | ) |
Calls the getInstance()
method on the locked Hierarchy.
Logger log4cplus::HierarchyLocker::getInstance | ( | const log4cplus::tstring & | name, |
spi::LoggerFactory & | factory | ||
) |
Calls the getInstance()
method on the locked Hierarchy.
void log4cplus::HierarchyLocker::resetConfiguration | ( | ) |
Calls the resetConfiguration()
method on the locked Hierarchy.