public class MDC extends Object
LoggerFactory
Constructor and Description |
---|
MDC() |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Remove all values from the MDC.
|
static Object |
get(String key)
Get the context value identified by key from the map.
|
static Map<String,String> |
getCopy() |
static void |
put(String key,
Object o)
Puts the context value o which can be identified with key into the map.
|
static void |
remove(String key)
Remove the context value identified by key from the map.
|
static void |
setMap(Map<String,String> map)
Set content of parameter map as the new content of the current MDC map.
|
public static Object get(String key)
key
- identification keypublic static void put(String key, Object o)
key
- identification keyo
- value to be putpublic static void remove(String key)
key
- identification keypublic static Map<String,String> getCopy()
null
.public static void setMap(Map<String,String> map)
map
- the instance to be set, or null
.public static void clear()
Copyright © 2024 levigo holding gmbh. All rights reserved.