Java Logging with Mapped Diagnostic Context (MDC)
A Mapped Diagnostic Context, or MDC in short, is an instrument for distinguishing interleaved log output from different sources. Log output is typically interleaved when a server handles multiple clients near-simultaneously. 1. Stamping Requests with MDC MDC is used to stamp each request. It is done by putting the contextual information about the request into …
