RTI Connext Modern C++ API  Version 5.3.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 <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 5.3.0 Copyright © Sun Jun 25 2017 Real-Time Innovations, Inc