Map Diagnostic Context.
More...
#include <mdc.hpp>
Map Diagnostic Context.
Logger diagntostic context for logger (or other usage)
- Since
- 0.1
- Author
- Vincent Lachenal
◆ MapDiagnosticContext() [1/3]
anch::logger::MapDiagnosticContext::MapDiagnosticContext |
( |
| ) |
|
◆ MapDiagnosticContext() [2/3]
◆ MapDiagnosticContext() [3/3]
◆ ~MapDiagnosticContext()
virtual anch::logger::MapDiagnosticContext::~MapDiagnosticContext |
( |
| ) |
|
|
virtual |
◆ add()
void anch::logger::MapDiagnosticContext::add |
( |
const std::string & | key, |
|
|
const std::string & | value ) |
|
noexcept |
Add value to context if not exists
- Parameters
-
key | the key |
value | the value |
◆ copy()
Copy diagnostics context from another one but thread identifier and constants
- Parameters
-
other | the diagnostic context to copy |
◆ get()
const std::map< std::string, std::string > & anch::logger::MapDiagnosticContext::get |
( |
| ) |
const |
|
noexcept |
Retrieve the map diagnostic context
- Returns
- the map diagnostic context
◆ put()
void anch::logger::MapDiagnosticContext::put |
( |
const std::string & | key, |
|
|
const std::string & | value ) |
|
noexcept |
Add or overwrite value to context
- Parameters
-
key | the key |
value | the value |
◆ remove()
void anch::logger::MapDiagnosticContext::remove |
( |
const std::string & | key | ) |
|
|
noexcept |
Remove value from context
- Parameters
-
◆ reset()
void anch::logger::MapDiagnosticContext::reset |
( |
| ) |
|
|
noexcept |
Reset diagnostics context but thread identifier and constants
The documentation for this class was generated from the following file: