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.
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
2 matches
Mail list logo