Skip to content
Advertisement

Tag: mdc

MDC value missing from log

My app is running on amazon SWF and I want to be able to see all the logs of a specific request using an slf4j MDC. For some code flows I see the MDC in the logs, but for some they are missing, for example: I have these 2 lines of code one after the other: I See the log,

MDC related content in tomcat access-logs

Can MDC related content be made available in tomcat access logs in spring boot application. I have gone through lot of blogs but everywhere the contents of MDC are logged to application logs but not in access logs. Is there any way to add them in tomcat access log pattern. Answer Final Verdict is: Access logs don’t support MDC as

Advertisement