Package org.ops4j.pax.logging.slf4j
Class Slf4jMDCAdapter
- java.lang.Object
-
- org.ops4j.pax.logging.slf4j.Slf4jMDCAdapter
-
- All Implemented Interfaces:
org.slf4j.spi.MDCAdapter
public class Slf4jMDCAdapter extends Object implements org.slf4j.spi.MDCAdapter
pax-logging specificMDCAdapterreturned fromSLF4JServiceProvider
-
-
Constructor Summary
Constructors Constructor Description Slf4jMDCAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidclearDequeByKey(String key)Stringget(String key)Map<String,String>getCopyOfContextMap()Deque<String>getCopyOfDequeByKey(String key)StringpopByKey(String key)voidpushByKey(String key, String value)voidput(String key, String val)voidremove(String key)voidsetContextMap(Map contextMap)
-
-
-
Method Detail
-
put
public void put(String key, String val)
- Specified by:
putin interfaceorg.slf4j.spi.MDCAdapter
-
remove
public void remove(String key)
- Specified by:
removein interfaceorg.slf4j.spi.MDCAdapter
-
clear
public void clear()
- Specified by:
clearin interfaceorg.slf4j.spi.MDCAdapter
-
getCopyOfContextMap
public Map<String,String> getCopyOfContextMap()
- Specified by:
getCopyOfContextMapin interfaceorg.slf4j.spi.MDCAdapter
-
setContextMap
public void setContextMap(Map contextMap)
- Specified by:
setContextMapin interfaceorg.slf4j.spi.MDCAdapter
-
pushByKey
public void pushByKey(String key, String value)
- Specified by:
pushByKeyin interfaceorg.slf4j.spi.MDCAdapter
-
popByKey
public String popByKey(String key)
- Specified by:
popByKeyin interfaceorg.slf4j.spi.MDCAdapter
-
getCopyOfDequeByKey
public Deque<String> getCopyOfDequeByKey(String key)
- Specified by:
getCopyOfDequeByKeyin interfaceorg.slf4j.spi.MDCAdapter
-
clearDequeByKey
public void clearDequeByKey(String key)
- Specified by:
clearDequeByKeyin interfaceorg.slf4j.spi.MDCAdapter
-
-