org.apache.log4j
Class MDC

java.lang.Object
  extended by 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
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

put

public static void put(String key,
                       String value)

put

public static void put(String key,
                       Object value)

get

public static Object get(String key)

remove

public static void remove(String key)

clear

public static void clear()

getContext

public static Hashtable<String,Object> getContext()


Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.