We implemented a custom logging solution that uses ThreadLocal variables.
We buffer the messages on a per-thread basis. This idea was suggested in Brian Goetz' article http://www-106.ibm.com/developerworks/java/library/j-threads3.html -Sean > -----Original Message----- > From: Steve Mactaggart [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 11, 2004 5:41 PM > To: [EMAIL PROTECTED] > Subject: Thread specific log buffer > > Hey again, > > While I'm writing emails thought I'd ask another one.. > > I am currently using logj4 in a servlet environment, and as such receive > multiple requests at the > same time. I use the SMTPAppender to send email on ERRORS, but when this > happens I get a chunk of > log that may contain many requests worth of data. > > What I am wondering is if the SMTPAppender (or something like it) can > buffer events 'per-thread' and > then when an ERROR occurs, send that threads worth of log in the email. > > Is there anything around that does this already, or something like it that > might point me in the > right direction? > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
