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.
Advertisement
Answer
Final Verdict is: Access logs don’t support MDC as per date.
Found this on github which provides a work-around to enable MDC for access logs.
https://github.com/dropwizard/dropwizard/issues/2419
In this there is a jira link which elaborates on the solution.