org.apache.solr.logging

## Class MDCLoggingContext

- java.lang.Object
- - org.apache.solr.logging.MDCLoggingContext

-     public class MDCLoggingContext
      extends Object

  Set's per thread context info for logging. Nested calls will use the top level parent for all context. The first caller always owns the context until it calls `clear()`. Always call `setCore(SolrCore)` or `setCoreDescriptor(CoreDescriptor)` and then `clear()` in a finally block.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MDCLoggingContext()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `clear()`
    `static void` | `reset()`
    `static void` | `setCore(SolrCore core)`
    `static void` | `setCoreDescriptor(CoreDescriptor cd)`
    `static void` | `setNode(CoreContainer cc)`
    `static void` | `setNode(String node)`

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

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

- - ### Constructor Detail

    - #### MDCLoggingContext

          public MDCLoggingContext()

  - ### Method Detail

    - #### setNode

          public static void setNode(CoreContainer cc)

    - #### setNode

          public static void setNode(String node)

    - #### setCore

          public static void setCore(SolrCore core)

    - #### setCoreDescriptor

          public static void setCoreDescriptor(CoreDescriptor cd)

    - #### clear

          public static void clear()

    - #### reset

          public static void reset()

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.