Package org.apache.logging.slf4j
Class Log4jMDCAdapter
- java.lang.Object
-
- org.apache.logging.slf4j.Log4jMDCAdapter
-
- All Implemented Interfaces:
org.slf4j.spi.MDCAdapter
public class Log4jMDCAdapter extends Object implements org.slf4j.spi.MDCAdapter
-
-
Constructor Summary
Constructors Constructor Description Log4jMDCAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
String
get(String key)
Map<String,String>
getCopyOfContextMap()
void
put(String key, String val)
void
remove(String key)
void
setContextMap(Map map)
-
-
-
Method Detail
-
put
public void put(String key, String val)
- Specified by:
put
in interfaceorg.slf4j.spi.MDCAdapter
-
remove
public void remove(String key)
- Specified by:
remove
in interfaceorg.slf4j.spi.MDCAdapter
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.slf4j.spi.MDCAdapter
-
getCopyOfContextMap
public Map<String,String> getCopyOfContextMap()
- Specified by:
getCopyOfContextMap
in interfaceorg.slf4j.spi.MDCAdapter
-
setContextMap
public void setContextMap(Map map)
- Specified by:
setContextMap
in interfaceorg.slf4j.spi.MDCAdapter
-
-