RTI Connext Modern C++ API  Version 6.1.0
rti::config::ScopedLoggerVerbosity Class Reference

Changes the logger verbosity temporarily during the scope of a variable. More...

#include <rti/config/Logger.hpp>

Public Member Functions

 ScopedLoggerVerbosity (Verbosity verbosity)
 
 ~ScopedLoggerVerbosity ()
 

Detailed Description

Changes the logger verbosity temporarily during the scope of a variable.

RAII utility to modify logging verbosity during the scope of a variable and restore it to the previous value upon destruction.

Constructor & Destructor Documentation

◆ ScopedLoggerVerbosity()

rti::config::ScopedLoggerVerbosity::ScopedLoggerVerbosity ( Verbosity  verbosity)
inline

◆ ~ScopedLoggerVerbosity()

rti::config::ScopedLoggerVerbosity::~ScopedLoggerVerbosity ( )
inline

Restores the verbosity of Logger::instance() to the value before the construction of this object.

References rti::config::Logger::instance(), and rti::config::Logger::verbosity().