- java.lang.Object
-
- io.helidon.logging.common.HelidonMdc
-
public class HelidonMdc extends Object
Helidon MDC delegates values across all of the supported logging frameworks on the classpath.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clear()
Remove all of the entries bound to the current thread from the instances ofMdcProvider
.static Optional<String>
get(String key)
Return the first value found to the specific key.static void
remove(String key)
Remove value with the specific key from all of the instances ofMdcProvider
.static void
set(String key, String value)
Propagate value to all of theMdcProvider
registered via SPI.
-
-
-
Method Detail
-
set
public static void set(String key, String value)
Propagate value to all of theMdcProvider
registered via SPI.- Parameters:
key
- entry keyvalue
- entry value
-
remove
public static void remove(String key)
Remove value with the specific key from all of the instances ofMdcProvider
.- Parameters:
key
- key
-
clear
public static void clear()
Remove all of the entries bound to the current thread from the instances ofMdcProvider
.
-
-