Class StaticMDCBinder

java.lang.Object
org.slf4j.impl.StaticMDCBinder

public final class StaticMDCBinder extends Object
  • Field Details

    • SINGLETON

      public static final StaticMDCBinder SINGLETON
      The unique instance of this class.
  • Constructor Details

    • StaticMDCBinder

      private StaticMDCBinder()
  • Method Details

    • getSingleton

      public static StaticMDCBinder getSingleton()
      Returns the SINGLETON StaticMDCBinder. Added to slf4j-api 1.7.14 via https://github.com/qos-ch/slf4j/commit/ea3cca72cd5a9329a06b788317a17e806ee8acd0
      Returns:
      the singleton instance
    • getMDCA

      public org.slf4j.spi.MDCAdapter getMDCA()
      Currently this method always returns an instance of StaticMDCBinder.
      Returns:
      an MDC adapter
    • getMDCAdapterClassStr

      public String getMDCAdapterClassStr()
      Retrieve the adapter class name.
      Returns:
      The adapter class name.