java - How to log thread context value in tomcat access logs -
i have logging thread context value in application logs %x pattern. now, want log same value in tomcat access log tomcat. there pattern log?
there 2 things consider ndc , mdc, can try both in tomcat logs, please check link detailed pattern of conversion chrachters (https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/patternlayout.html)
try %x , %x both, check here how can change tomcat logging properties (http://www.laliluna.com/articles/posts/log4j-tutorial.html)
Comments
Post a Comment