public class LogContext
extends java.lang.Object
MDC. This class allows MDC parameters
to be set, and popped back off when the context is finished.| Constructor and Description |
|---|
LogContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Finish the context.
|
void |
put(java.lang.String key,
java.lang.String value)
Set a key in the MDC environment.
|
public void put(java.lang.String key,
java.lang.String value)
key - The key to set.value - The key's value.MDC.put(String, String)public void finish()