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

org.apache.log4j

## Class NDC

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

-     public class NDC
      extends Object

  A log4j's NDC implemented in terms of SLF4J MDC primitives.
  Since:
    SLF4J 1.6.0

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `PREFIX`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NDC()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `clear()`
    `static Stack` | `cloneStack()`
    `static String` | `get()`
    `static int` | `getDepth()`
    `static void` | `inherit(Stack stack)`
    `static String` | `peek()`
    `static String` | `pop()`
    `static void` | `push(String message)`
    `static void` | `remove()`
    `static void` | `setMaxDepth(int maxDepth)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### PREFIX

          public static final String PREFIX

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### NDC

          public NDC()

  - ### Method Detail

    - #### clear

          public static void clear()

    - #### cloneStack

          public static Stack cloneStack()

    - #### inherit

          public static void inherit(Stack stack)

    - #### get

          public static String get()

    - #### getDepth

          public static int getDepth()

    - #### pop

          public static String pop()

    - #### peek

          public static String peek()

    - #### push

          public static void push(String message)

    - #### remove

          public static void remove()

    - #### setMaxDepth

          public static void setMaxDepth(int maxDepth)

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