Add an entry to the MDC
NoteThe MDC is deprecated and has been replaced by the Properties. The current MDC implementation forwards to the
ThreadContext.Properties
.
Puts a context value (the val parameter) as identified with the key parameter into the current thread's context map.
If a value is already defined for the key specified then the value will be replaced. If the val is specified as null
then the key value mapping will be removed.