|
TrueReality
v0.1.1912
|
Scoped variable to turn off logging (except for always) for a block of code. More...
#include <Log.h>

Public Member Functions | |
| LoggingOff (const std::string &name=Log::LOG_DEFAULT_NAME) | |
| Constructor. More... | |
| ~LoggingOff () | |
| Destructor. More... | |
Private Attributes | |
| trUtil::Logging::Log & | mLog |
| LogLevel | mOldLevel |
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.
| trUtil::Logging::LoggingOff::LoggingOff | ( | const std::string & | name = Log::LOG_DEFAULT_NAME | ) |
Constructor.
| name | (Optional) The name. |
Definition at line 357 of file Log.cpp.
References trUtil::Logging::Log::GetLogLevel(), mLog, mOldLevel, and trUtil::Logging::Log::SetLogLevel().

| trUtil::Logging::LoggingOff::~LoggingOff | ( | ) |
Destructor.
Definition at line 365 of file Log.cpp.
References mLog, mOldLevel, and trUtil::Logging::Log::SetLogLevel().

|
private |
Definition at line 580 of file Log.h.
Referenced by LoggingOff(), and ~LoggingOff().
|
private |
Definition at line 581 of file Log.h.
Referenced by LoggingOff(), and ~LoggingOff().