Hi

We are introducing log4j into an existing application. Currently this
application is multithreaded, and it is designed so that the debug-level
logging for each thread is written to a separate in-memory buffer. That is,
each thread has its own buffer. If an exception is thrown in a thread, the
contents of the buffer for that thread are printed out to the console. The
point of this is to reduce the number of messages that are written to the
console; and by using one buffer per thread, reduce the I/O blocking.

Using log4j, I know that you can write to a buffer using the WriterAppender
class, but I am not sure how I can do the 'one buffer per thread' part. If
anyone has any bright ideas I would be glad to hear them.

Many thanks
Lyndsey


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to