Mapped Diagnostic Context(MDC)
Briefly

MDC is a feature provided by logging frameworks like Logback and Log4j. It allows you to associate contextual information with each thread.
If we are using multiple threads in the application, we should copy the context from the previous thread to the new thread. Every time, we should clear the MDC in the finally block.
Read at Medium
[
]
[
|
]