Hi all!  In my application, I need to know if log4j failed to write a log
message.

I'm using RollingFileAppender, and from looking at the source, it catches
exceptions and just writes to console.  I'm writing transaction audit logs,
so if I can't write to the log (disk full, or whatever) I want to abort the
transaction.  Note that the log writing is done first; it doesn't need to
part of an atomic transaction.

First, is my reading of the code correct?  Will the code that calls log4j
not get an exception?

Second, any ideas on how to work around this?  Custom appender?  It seems
like a waste to re-implement RollingFileAppender.

Thanks for any help on this!

-----------------------------------------------------------------
Colin MacDonald  |  Software Developer  |  Templar Corporation  |
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002


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

Reply via email to