org.apache.log4j
Class MDC

java.lang.Object
  extended by org.apache.log4j.MDC

public class MDC
extends Object


Constructor Summary
MDC()
           
 
Method Summary
static void clear()
           
static Object get(String key)
           
static Hashtable getContext()
          Deprecated. 
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
 

Constructor Detail

MDC

public MDC()
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

@Deprecated
public static Hashtable getContext()
Deprecated. 

This method is not part of the Log4J public API. However it has been called by other projects. This method is here temporarily until projects who are depending on this method release fixes.



Copyright © 2005–2016 QOS.ch. All rights reserved.