Do not use the same PatternLayout for different appenders. PatternLayout has a StringBuffer field that is only used in format(). Multiple appenders end up sharing the same buffer.
---------- Sometimes an event would get written to a wrong file (in addition to, and sometimes in place of the correct file). I set my category based on a user session and each session creates its own log file(for now there's only one FileAppender for the Logger): For the most part, I logging works great. But every now and then, I get the wrong events. . . I only discovered this during Load Testing. I had 32 clients running. So then I took the Load Testing tool down to just 2 clients. Here are some of the things I notice: 1. The majority of the events get written to the correct file. 2. Sometimes, an event would get written to its file in addition to the other. 3. Sometimes, and event on a Logger would get written to the other file. Snippet from File51 (see line 2): 2002-08-13 18:17:20.119 - SQL - File51-1 row(s) returned 2002-08-13 18:17:20.169 - SQL - File56-1 row(s) returned 2002-08-13 18:17:20.159 - TRACE - File51-<TetcoContractLookupProcess_Impl> Defaulting lookupDate 2002-08-13 18:17:20.300 - SQL - File51-SELECT .... 4. Most of the times when the error happens, the two clients fired a logging event at the same time as the other. Snippet from File51(see line 3): 2002-08-13 18:17:11.637 - TRACE - File51-<TCLookupProcess_Impl> Defaulting lookupDate 2002-08-13 18:17:11.647 - SQL - File51-SELECT ... 2002-08-13 18:17:11.727 - SQL - File56-SELECT ... 2002-08-13 18:17:11.727 - SQL - File51-1 row(s) returned 2002-08-13 18:17:11.757 - TRACE - File51-<TCLookupProcess_Impl> Defaulting lookupDate 5. On occassion, I'll see the timestamping not come in order Snippet from File51(see line 2): 2002-08-13 18:17:28.191 - TRACE - File51-<Object_DataAccess> findMany: 1 row(s) returned from QueryCache 2002-08-13 18:17:28.301 - LOG - File56-Processing SRVLT_CNT=5&SID=UXUBCFYAAAAAKCXYCCCDIWQ 2002-08-13 18:17:28.281 - TRACE - File51-<TCLookupProcess_Impl> Defaulting lookupDate Any ideas? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>