Logging with Mapped Diagnostic Context (MDC) to provide a way to enrich log messages with pieces of information that can be useful for better tracking program execution.
In this post, we will see how to include basic MDC, such as request information or the authenticated user id, with Spring MVC.