The Mapped Diagnostic Context or MDC is basically a map which can be used to store the context information of the particular thread in which the context is working.In addition it supports asynchronous logging. For the goal of this tutorial I established a simple Java project that uses Log4j 2, yow will discover it in our Github account.A log config