MDC (SLF4J 1.7.25 API)
Date: 2017-03-16

org.apache.log4j

## Class MDC

- java.lang.Object
- - org.apache.log4j.MDC

-     public class MDC
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MDC()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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–2017 QOS.ch. All rights reserved.