|
JBoss Log Manager 1.5.5.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.logmanager.MDC
public final class MDC
Mapped diagnostic context. This is a thread-local map used to hold loggable information.
| Method Summary | |
|---|---|
static void |
clear()
Clear the current MDC map. |
static Map<String,String> |
copy()
Get a copy of the MDC map. |
static String |
get(String key)
Get the value for a key, or null if there is no mapping. |
static String |
put(String key,
String value)
Set the value of a key, returning the old value (if any) or null if there was none. |
static String |
remove(String key)
Remove a key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String get(String key)
null if there is no mapping.
key - the key
public static String put(String key,
String value)
null if there was none.
key - the keyvalue - the new value
null if there was nonepublic static String remove(String key)
key - the key
null if there was nonepublic static Map<String,String> copy()
public static void clear()
|
JBoss Log Manager 1.5.5.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||