logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chiming Huang <tomcat_hu...@yahoo.com>
Subject Re: Create different file for each session
Date Mon, 15 Nov 2004 14:52:23 GMT
Thank you for the answer.  Just out of curious, is it
normal to log 
everything in one file for all users?  If needs
trouble shooting later, is 
there a better tool to extract the related log entries
for a specific user, 
time ...,etc?

Thanks,
Chiming

----- Original Message ----- 
From: "Jacob Kjome" <hoju@visi.com>
To: "Log4J Users List" <log4j-user@logging.apache.org>
Sent: Sunday, November 14, 2004 9:53 PM
Subject: Re: Create different file for each session


> At 07:10 AM 11/13/2004 -0800, you wrote:
> >Hi,
> >
> >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.
>
> Jake
>
> >Thanks,
> >Chiming
> >
> >
> >---------------------------------
> >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
>
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message