Mapped Diagnostic Context (MDC) - Improved Java Logging

Mapped Diagnostic Context provides a way to enrich log messages with information that could be unavailable in the scope where the logging actually occurs but that can be indeed useful to better track the execution of the program.


More detail, refer - https://www.baeldung.com/mdc-in-log4j-2-logback



Comments

Popular posts from this blog

Java 8 : Find the number starts with 1 from a list of integers

Optional Vs Null Check

How to prevent Singleton Class from Reflection and Serialization