I am trying to log the session id with every log event so that I can trace a visitors steps in the log file. I am using log4j and was hoping I could use either the NDC or MDC. I am not able to figure out where to push the session id into the context and pop it out of the context when using NDC. If I wanted to use MDC, where could I put the session id in to the map for each request? Is there a particular wicket method to override and put this in? Should this be done as a servlet filter instead [before or after OSIV filter]?
Thanks for any help.