logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: Create different file for each session
Date Mon, 15 Nov 2004 02:53:57 GMT
At 07:10 AM 11/13/2004 -0800, you wrote:
 >We are using log4j 1.2.8 with Tomcat 4.1.24, struts 1.1, JPS.  We are trying
 >to log messages to a new file for each logon session.  Is it feasible in
 >log4j?  I am also looking into the NDC.  It recommends to call NDC.remove()
 >at the end of each thread.  Could you point out what is the best way to
 >determine thread start and end for the web application.

I'll answer the latter question.  Use a servlet filter.  1 thread == 1 
request/response cycle.  With a servlet filter, you can have access to the 
thread before and after any work is done within that thread making it ideal 
for your situation.


 >Do you Yahoo!?
 > Check out the new Yahoo! Front Page. www.yahoo.com

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message