Dear Matt Brown,
My JSP application also uses some Java classes. Your solution is
suitable for use inside those Java classes?
On Wed, Sep 30, 2009 at 15:40, Matt Brown <[email protected]>wrote:
> I've implemented this before by writing a javax.servlet.Filter to add the
> SessionID to the MDC of every request.
>
> -----Original Message-----
> From: Renan Vinícius Mozone [mailto:[email protected]]
> Sent: Wednesday, September 30, 2009 2:13 PM
> To: [email protected]
> Subject: Log session session information (Web)
>
> I'm planning to use log4j on a JSP based application. However, every log
> entry must have a session identification. This session identification is in
> a session variable.
> How can I configure the formatter to achieve this?
>
> The log entry must be something like this:
>
> [TIMESTAMP] [THREAD] [LOG LEVEL] [SESSION ID] [MESSAGE]
>
> Thanks in advance.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>