Package org.apache.log4j
Class MDC
- java.lang.Object
-
- org.apache.log4j.MDC
-
public final class MDC extends Object
This class behaves just like Log4j's MDC would - and so can cause issues with the redeployment of web applications if the Objects stored in the threads Map cannot be garbage collected.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clear()
static Object
get(String key)
static Hashtable<String,Object>
getContext()
static void
put(String key, Object value)
static void
put(String key, String value)
static void
remove(String key)
-
-
-
Method Detail
-
remove
public static void remove(String key)
-
clear
public static void clear()
-
-