public class MDC extends 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 Object |
get(String key)
Get the context identified by the
key parameter. |
static Map |
getContext()
Get the current thread's MDC as a map.
|
static void |
put(String key,
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(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(String key, 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 Object get(String key)
key parameter.
This method has no side effects.
public static void remove(String key)
key
parameter.public static Map getContext()
public static void dispose()
public static void clear()
Copyright © 2006-2016 OPS4J - Open Participation Software for Java. All Rights Reserved.