java.lang.Object
io.helidon.logging.slf4j.Slf4jMdcProvider
- All Implemented Interfaces:
MdcProvider
Provider for setting MDC values to the Slf4j MDC support.
This class is loaded and used via SPI.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear all of the MDC values from the specific logging framework MDC storage.Return value bound to the specific key.void
Set value to the specific logging framework MDC storage.void
Remove value bound to the key from the specific logging framework MDC storage.
-
Constructor Details
-
Slf4jMdcProvider
public Slf4jMdcProvider()
-
-
Method Details
-
put
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
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
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
-