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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -