This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
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
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.


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:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic