RTI Connext Modern C++ API  Version 6.0.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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

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

Sets the verbosity of Logger::instance()

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

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


RTI Connext Modern C++ API Version 6.0.0 Copyright © Sun Mar 3 2019 Real-Time Innovations, Inc