Class LogMDCScope

Class Documentation

class LogMDCScope

Public Functions

LogMDCScope(std::string const &key, std::string const &value)

Constructor adds KEY/VALUE pair to current thread MDC. Key should not be empty (not checked).

LogMDCScope(LogMDCScope const&)
LogMDCScope &operator=(LogMDCScope const&)
LogMDCScope(LogMDCScope &&other)
LogMDCScope &operator=(LogMDCScope &&other)
~LogMDCScope()

Destructor restores old key value in MDC.