![]() |
eRPC Generator (erpcgen)
Rev. 1.12.0
NXP Semiconductors
|
Utility class to temporarily change the logging output level. More...
#include <Logging.hpp>
Public Member Functions | |
| SetOutputLevel (Logger::log_level_t level) | |
| Default constructor. More... | |
| SetOutputLevel (Logger *logger, Logger::log_level_t level) | |
| Constructor. More... | |
| ~SetOutputLevel () | |
| Destructor. More... | |
Protected Attributes | |
| Logger * | m_logger |
| The logger instance we're controlling. | |
| Logger::log_level_t | m_saved |
| Original logging output level. | |
Utility class to temporarily change the logging output level.
This class will change the current logging output level of a given logger instance. Then when it falls out of scope it will set the level back to what it was originally.
Use like this:
|
inlineexplicit |
Default constructor.
Saves the current logging output level of the global logger, as managed by the Log class, and sets the new level to level.
|
inline |
Constructor.
Saves the current logging output level of logger and sets the new level to level.
|
inline |
Destructor.
Restores the saved logging output level.