Package org.slf4j.impl
Class StaticMDCBinder
- java.lang.Object
-
- org.slf4j.impl.StaticMDCBinder
-
public final class StaticMDCBinder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.spi.MDCAdapter
mdcAdapter
static StaticMDCBinder
SINGLETON
The unique instance of this class.
-
Constructor Summary
Constructors Modifier Constructor Description private
StaticMDCBinder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.slf4j.spi.MDCAdapter
getMDCA()
Currently this method always returns an instance ofStaticMDCBinder
.java.lang.String
getMDCAdapterClassStr()
Retrieve the adapter class name.static StaticMDCBinder
getSingleton()
Returns theSINGLETON
StaticMDCBinder
.
-
-
-
Field Detail
-
SINGLETON
public static final StaticMDCBinder SINGLETON
The unique instance of this class.
-
mdcAdapter
private final org.slf4j.spi.MDCAdapter mdcAdapter
-
-
Method Detail
-
getSingleton
public static StaticMDCBinder getSingleton()
Returns theSINGLETON
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 ofStaticMDCBinder
.- Returns:
- an MDC adapter
-
getMDCAdapterClassStr
public java.lang.String getMDCAdapterClassStr()
Retrieve the adapter class name.- Returns:
- The adapter class name.
-
-