18#ifndef LOG4CXX_LEVEL_CHANGE_HDR_
19#define LOG4CXX_LEVEL_CHANGE_HDR_
48 : m_otherCategory(otherCategory)
49 , m_savedLevel(otherCategory->getLevel())
51 m_otherCategory->setLevel(level);
55 :
LevelChange(otherCategory, m_otherCategory->getLevel())
59 template <
class StringType>
65 template <
class StringType>
73 m_otherCategory->setLevel(m_savedLevel);
Changes a verbosity level for the instance variable's lifetime.
Definition: levelchange.h:42
LevelChange(const StringType &otherCategory, const LoggerPtr &thisCategory)
Set the logger named otherCategory to the level of thisCategory.
Definition: levelchange.h:66
~LevelChange()
Restore the verbosity level of the other logger.
Definition: levelchange.h:71
LevelChange(const LoggerPtr &otherCategory, const LoggerPtr &thisCategory)
Set otherCategory to the level of thisCategory.
Definition: levelchange.h:54
LevelChange(const LoggerPtr &otherCategory, const LevelPtr &level)
Set otherCategory to level.
Definition: levelchange.h:47
LevelChange(const StringType &otherCategory, const LevelPtr &level)
Set the logger named otherCategory to level.
Definition: levelchange.h:60
Use the LogManager class to retreive Logger instances or to operate on the current LoggerRepository.
Definition: logmanager.h:45
std::shared_ptr< Level > LevelPtr
Definition: optionconverter.h:28
std::shared_ptr< Logger > LoggerPtr
Definition: defaultloggerfactory.h:27