Posts

MDC Logging using SpringBoot

Image
MDC Logging using SpringBoot Introduction Logging is an integral part of software development that enables us to better debug the issue in production. In the development environment we have the freedom of troubleshooting using breakpoints using any of our favourite IDEs. During the production, it is not possible that we go with a downtime, add extra logs and then debug. MDC logging comes to the rescue in this case. Mapped Diagnostic context comes to the rescue in this case. Its purpose can be extrapolated in much more ways than this too. Since those are already covered on other blogs the production support will be covered here. Pre-requisite Knowledge of the following is expected 1.        SpringBoot 2.        Log4j Logging 3.        SL4j logging   Prior to MDC Extra Info  The logging statements provide a good way to debug information where one can have different lev...