Re: Questions on logging

2004-08-31 Thread Nicolas De Loof
1. thread-safe require no variable (instance or static) that a thread may consider to be the only one to update. Read-only member (as a logger instance) can be used safely. 2. you can configure log4j to add the thread id to the log, so that a simple grep will extract all logs for a request.

Re: Questions on logging

2004-08-31 Thread Craig McClanahan
On 31 Aug 2004 15:43:29 +0800, Sebastian Ho [EMAIL PROTECTED] wrote: Hi I am in the stage of implementing logging in my struts application. I have been reading online but have some questions unanswered. 1. Action class should be thread-safe. Therefore no static variable, I should just use