MDC

Java Logging

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 …

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.