- java.lang.Object
-
- io.helidon.logging.jul.JulMdcProvider
-
- All Implemented Interfaces:
MdcProvider
public class JulMdcProvider extends Object implements MdcProvider
Provider for setting MDC values to the Java Util Logging MDC support. This class is loaded and used via SPI.
-
-
Constructor Summary
Constructors Constructor Description JulMdcProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear all of the MDC values from the specific logging framework MDC storage.Stringget(String key)Return value bound to the specific key.voidput(String key, String value)Set value to the specific logging framework MDC storage.voidremove(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:MdcProviderSet value to the specific logging framework MDC storage.- Specified by:
putin interfaceMdcProvider- Parameters:
key- entry keyvalue- entry value
-
remove
public void remove(String key)
Description copied from interface:MdcProviderRemove value bound to the key from the specific logging framework MDC storage.- Specified by:
removein interfaceMdcProvider- Parameters:
key- entry to remove
-
clear
public void clear()
Description copied from interface:MdcProviderClear all of the MDC values from the specific logging framework MDC storage.- Specified by:
clearin interfaceMdcProvider
-
get
public String get(String key)
Description copied from interface:MdcProviderReturn value bound to the specific key.- Specified by:
getin interfaceMdcProvider- Parameters:
key- entry key- Returns:
- value bound to the key
-
-