Log4j MDC (Mapped Diagnostic Context) : Example code
As a continuation of my previous post about Log4j MDC (Mapped Diagnostic Context), here's a fully working code sample explaining the concept. This is a simple example where we have a one servlet and one filter. The filter intercepts each and every request and put the user name in the MDC.Read full article from Log4j MDC (Mapped Diagnostic Context) : Example code
No comments:
Post a Comment