olp-cpp-sdk  1.22.0
Public Member Functions | List of all members
olp::logging::ScopedLogContext Class Referencefinal

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)
 

Detailed Description

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.

See also
MessageFormatter::ElementType::Context

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