TrueReality  v0.1.1912
trUtil::Logging::LoggingOff Class Reference

Scoped variable to turn off logging (except for always) for a block of code. More...

#include <Log.h>

Collaboration diagram for trUtil::Logging::LoggingOff:

Public Member Functions

 LoggingOff (const std::string &name=Log::LOG_DEFAULT_NAME)
 Constructor. More...
 
 ~LoggingOff ()
 Destructor. More...
 

Private Attributes

trUtil::Logging::LogmLog
 
LogLevel mOldLevel
 

Detailed Description

Scoped variable to turn off logging (except for always) for a block of code.

This is useful for testing, and for temporary disabling of logging in certain areas.

Definition at line 560 of file Log.h.

Constructor & Destructor Documentation

◆ LoggingOff()

trUtil::Logging::LoggingOff::LoggingOff ( const std::string &  name = Log::LOG_DEFAULT_NAME)

Constructor.

Parameters
name(Optional) The name.

Definition at line 357 of file Log.cpp.

References trUtil::Logging::Log::GetLogLevel(), mLog, mOldLevel, and trUtil::Logging::Log::SetLogLevel().

Here is the call graph for this function:

◆ ~LoggingOff()

trUtil::Logging::LoggingOff::~LoggingOff ( )

Destructor.

Definition at line 365 of file Log.cpp.

References mLog, mOldLevel, and trUtil::Logging::Log::SetLogLevel().

Here is the call graph for this function:

Member Data Documentation

◆ mLog

trUtil::Logging::Log& trUtil::Logging::LoggingOff::mLog
private

Definition at line 580 of file Log.h.

Referenced by LoggingOff(), and ~LoggingOff().

◆ mOldLevel

LogLevel trUtil::Logging::LoggingOff::mOldLevel
private

Definition at line 581 of file Log.h.

Referenced by LoggingOff(), and ~LoggingOff().


The documentation for this class was generated from the following files: