David,

Your question is more appropriate for the log4j-user email list.

Have you looked into using the MDC to store the session id?  You can then
output the current sessionid as part of the message.  The stock pattern
layout uses the %X escape sequence to print out MDC key/value pairs.

-Mark

> -----Original Message-----
> From: David Siegel [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 29, 2003 5:02 PM
> To: [EMAIL PROTECTED]
> Subject: Newbie - Basic Question
> 
> 
> 
> Hello
> 
> I've been playing with log4j quite a bit and have developed an Object 
> Renderer and my own XML Layout for some custom information. 
> However, I am 
> wondering if there is a SIMPLER way to add an additional 
> element, such as a 
> session ID to the basic XML Layout. The Java Logging API for 
> example allows 
> passage of a Parameters tag in one of the log methods that solves the 
> problem quite cleanly. If there is an equivalent solution in 
> log4j I have 
> not found it, but I am hoping there is and I have just missed it.
> 
> Thank very much
> 
> Dave
> 
> BTW - I am not trying to make any comparisons between the 
> APIs, just trying 
> to make log4j work for my application.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to