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

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. 3.

Questions on logging

2004-08-31 Thread Sebastian Ho
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 a non-static variable to hold my logger? 2. In a multi-user web application