public class MDC extends Object
Constructor and Description |
---|
MDC() |
Modifier and Type | Method and Description |
---|---|
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()
Copyright © 2017. All rights reserved.