- java.lang.Object
-
- io.helidon.logging.slf4j.Slf4jMdcProvider
-
- All Implemented Interfaces:
MdcProvider
public class Slf4jMdcProvider extends Object implements MdcProvider
Provider for setting MDC values to the Slf4j MDC support. This class is loaded and used via SPI.
-
-
Constructor Summary
Constructors Constructor Description Slf4jMdcProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clear all of the MDC values from the specific logging framework MDC storage.String
get(String key)
Return value bound to the specific key.void
put(String key, String value)
Set value to the specific logging framework MDC storage.void
remove(String key)
Remove value bound to the key from the specific logging framework MDC storage.
-
-
-
Method Detail
-
put
public void put(String key, String value)
Description copied from interface:MdcProvider
Set value to the specific logging framework MDC storage.- Specified by:
put
in interfaceMdcProvider
- Parameters:
key
- entry keyvalue
- entry value
-
remove
public void remove(String key)
Description copied from interface:MdcProvider
Remove value bound to the key from the specific logging framework MDC storage.- Specified by:
remove
in interfaceMdcProvider
- Parameters:
key
- entry to remove
-
clear
public void clear()
Description copied from interface:MdcProvider
Clear all of the MDC values from the specific logging framework MDC storage.- Specified by:
clear
in interfaceMdcProvider
-
get
public String get(String key)
Description copied from interface:MdcProvider
Return value bound to the specific key.- Specified by:
get
in interfaceMdcProvider
- Parameters:
key
- entry key- Returns:
- value bound to the key
-
-