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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -