Public Types | |
typedef std::map< String, String > | Map |
Static Public Member Functions | |
static void | put (const String &key, const String &value) |
static String | get (const String &key) |
static String | remove (const String &key) |
static void | clear () |
static const Map | getContext () |
The MDC is managed on a per thread basis. A child thread automatically inherits a copy of the mapped diagnostic context of its parent.
The MDC class requires JDK 1.2 or above. Under JDK 1.1 the MDC will always return empty values but otherwise will not affect or harm your application.
|
String to string stl mp |
|
Clear all entries in the MDC. |
|
Get the context identified by the This method has no side effects. |
|
Get the current thread's MDC as a Map. This method is intended to be used internally. |
|
Put a context value (the If the current thread does not have a context map it is created as a side effect. |
|
Remove the the context identified by the |