public class Log4jMDCAdapter extends Object implements org.slf4j.spi.MDCAdapter
| Constructor and Description |
|---|
Log4jMDCAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
clearDequeByKey(String key) |
String |
get(String key) |
Map<String,String> |
getCopyOfContextMap() |
Deque<String> |
getCopyOfDequeByKey(String key) |
String |
popByKey(String key) |
void |
pushByKey(String key,
String value) |
void |
put(String key,
String val) |
void |
remove(String key) |
void |
setContextMap(Map<String,String> map) |
public void remove(String key)
remove in interface org.slf4j.spi.MDCAdapterpublic void clear()
clear in interface org.slf4j.spi.MDCAdapterpublic Map<String,String> getCopyOfContextMap()
getCopyOfContextMap in interface org.slf4j.spi.MDCAdapterpublic void setContextMap(Map<String,String> map)
setContextMap in interface org.slf4j.spi.MDCAdapterpublic void pushByKey(String key, String value)
pushByKey in interface org.slf4j.spi.MDCAdapterpublic String popByKey(String key)
popByKey in interface org.slf4j.spi.MDCAdapterpublic Deque<String> getCopyOfDequeByKey(String key)
getCopyOfDequeByKey in interface org.slf4j.spi.MDCAdapterpublic void clearDequeByKey(String key)
clearDequeByKey in interface org.slf4j.spi.MDCAdapterCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.