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.MDCAdapter
public void clear()
clear
in interface org.slf4j.spi.MDCAdapter
public Map<String,String> getCopyOfContextMap()
getCopyOfContextMap
in interface org.slf4j.spi.MDCAdapter
public void setContextMap(Map<String,String> map)
setContextMap
in interface org.slf4j.spi.MDCAdapter
public void pushByKey(String key, String value)
pushByKey
in interface org.slf4j.spi.MDCAdapter
public String popByKey(String key)
popByKey
in interface org.slf4j.spi.MDCAdapter
public Deque<String> getCopyOfDequeByKey(String key)
getCopyOfDequeByKey
in interface org.slf4j.spi.MDCAdapter
public void clearDequeByKey(String key)
clearDequeByKey
in interface org.slf4j.spi.MDCAdapter
Copyright © 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.