File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TOMCAT valve/global-filter setting MDC

 
Veeresh Hubballi
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to set MDC values in a global filter/Custom Valve.

MDC.put("user","testuser")

Why i am not able to see tha same getting appended in the logs.
I have included [%X{user}].But i get empty([]) in my logs.

And more over MDC.class.hashCode() in the valve/global filter and in servlet are showing different values even though Thread.currentThread().getname() is same.



 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic