Package com.github.valfirst.slf4jtest
Class TestMDCAdapter
- java.lang.Object
-
- org.slf4j.helpers.BasicMDCAdapter
-
- com.github.valfirst.slf4jtest.TestMDCAdapter
-
- All Implemented Interfaces:
MDCAdapter
public class TestMDCAdapter extends BasicMDCAdapter
-
-
Constructor Summary
Constructors Constructor Description TestMDCAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Stringget(String key)com.google.common.collect.ImmutableMap<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 interfaceMDCAdapter- Overrides:
putin classBasicMDCAdapter
-
get
public String get(String key)
- Specified by:
getin interfaceMDCAdapter- Overrides:
getin classBasicMDCAdapter
-
remove
public void remove(String key)
- Specified by:
removein interfaceMDCAdapter- Overrides:
removein classBasicMDCAdapter
-
clear
public void clear()
- Specified by:
clearin interfaceMDCAdapter- Overrides:
clearin classBasicMDCAdapter
-
getCopyOfContextMap
public com.google.common.collect.ImmutableMap<String,String> getCopyOfContextMap()
- Specified by:
getCopyOfContextMapin interfaceMDCAdapter- Overrides:
getCopyOfContextMapin classBasicMDCAdapter
-
setContextMap
public void setContextMap(Map contextMap)
- Specified by:
setContextMapin interfaceMDCAdapter- Overrides:
setContextMapin classBasicMDCAdapter
-
-