public class MDC
extends java.lang.Object
| Constructor and Description |
|---|
MDC() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Clear map with key/value in current thread's MDC
|
static void |
dispose()
Pax Logging internal method.
|
static java.lang.Object |
get(java.lang.String key)
Get the context identified by the
key parameter. |
static java.util.Map |
getContext()
Get the current thread's MDC as a map.
|
static void |
put(java.lang.String key,
java.lang.Object o)
Put a context value (the
o parameter) as identified
with the key parameter into the current thread's
context map. |
static void |
remove(java.lang.String key)
Remove the the context identified by the
key
parameter. |
static void |
setBundleContext(org.osgi.framework.BundleContext ctx) |
public static void setBundleContext(org.osgi.framework.BundleContext ctx)
public static void put(java.lang.String key,
java.lang.Object o)
o parameter) as identified
with the key parameter into the current thread's
context map.
If the current thread does not have a context map it is created as a side effect.
public static java.lang.Object get(java.lang.String key)
key parameter.
This method has no side effects.
public static void remove(java.lang.String key)
key
parameter.public static java.util.Map getContext()
public static void dispose()
public static void clear()
Copyright © 2006-2021 OPS4J - Open Participation Software for Java. All Rights Reserved.