olp-cpp-sdk
1.22.0
|
The ScopedLogContext class takes ownership of a log context and makes it active on construction and restores the previous context on destruction. More...
#include <LogContext.h>
Public Member Functions | |
ScopedLogContext (const std::shared_ptr< const LogContext > &context) | |
The ScopedLogContext class takes ownership of a log context and makes it active on construction and restores the previous context on destruction.
Passing 'nullptr' is the same as passing an empty LogContext.