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 voidclear()static Objectget(String key)static Hashtable<String,Object>getContext()static voidput(String key, Object value)static voidput(String key, String value)static voidremove(String key)
-
-
-
Method Detail
-
remove
public static void remove(String key)
-
clear
public static void clear()
-
-