Package org.slf4j.impl
Class Slf4jMDCAdapter
- java.lang.Object
-
- org.slf4j.helpers.BasicMDCAdapter
-
- org.slf4j.impl.Slf4jMDCAdapter
-
- All Implemented Interfaces:
org.slf4j.spi.MDCAdapter
public final class Slf4jMDCAdapter extends org.slf4j.helpers.BasicMDCAdapter implements org.slf4j.spi.MDCAdapter
-
-
Constructor Summary
Constructors Constructor Description Slf4jMDCAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Stringget(String key)Map<String,String>getCopyOfContextMap()voidput(String key, String val)voidremove(String key)voidsetContextMap(Map contextMap)-
Methods inherited from class org.slf4j.helpers.BasicMDCAdapter
clearDequeByKey, getCopyOfDequeByKey, getKeys, popByKey, pushByKey
-
-
-
-
Method Detail
-
put
public void put(String key, String val)
- Specified by:
putin interfaceorg.slf4j.spi.MDCAdapter- Overrides:
putin classorg.slf4j.helpers.BasicMDCAdapter
-
get
public String get(String key)
- Specified by:
getin interfaceorg.slf4j.spi.MDCAdapter- Overrides:
getin classorg.slf4j.helpers.BasicMDCAdapter
-
remove
public void remove(String key)
- Specified by:
removein interfaceorg.slf4j.spi.MDCAdapter- Overrides:
removein classorg.slf4j.helpers.BasicMDCAdapter
-
clear
public void clear()
- Specified by:
clearin interfaceorg.slf4j.spi.MDCAdapter- Overrides:
clearin classorg.slf4j.helpers.BasicMDCAdapter
-
getCopyOfContextMap
public Map<String,String> getCopyOfContextMap()
- Specified by:
getCopyOfContextMapin interfaceorg.slf4j.spi.MDCAdapter- Overrides:
getCopyOfContextMapin classorg.slf4j.helpers.BasicMDCAdapter
-
setContextMap
public void setContextMap(Map contextMap)
- Specified by:
setContextMapin interfaceorg.slf4j.spi.MDCAdapter- Overrides:
setContextMapin classorg.slf4j.helpers.BasicMDCAdapter
-
-