java.lang.Object
io.helidon.logging.log4j.Log4jMdcProvider
- All Implemented Interfaces:
MdcProvider
Provider for setting MDC values to the Log4j 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
-
Log4jMdcProvider
public Log4jMdcProvider()
-
-
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
-