On Tue, 16 Oct 2001 10:18, [EMAIL PROTECTED] wrote:
> I have been looking for a logging framework which will notify the client
> application
> when logging fails (fail-safe). I am seeking confirmation that Logkit can
> achieve this.
> Having looked at the source code, Logkit defaults to using
> DefaultErrorHandler
> which does not, by itself, ensure fail-safe operations.

yep.

> However, if I subclass DefaultErrorHandler and make the error method throw
> a
> run-time exception, this should then allow any client class to detect the
> failure
> and take appropriate action. Naturally, the client will need to instantiate
> a Hierarchy object that sets the ErrorHandler.
>
> My question is - this seems very easy to do but will this work?

It *should* in all (most?) cases. The only times where it will not work is 
when a LogTarget is not written correctly or has bugs. I think that all the 
Targets in current CVS should work fine in your situation though it is not 
something I have tried before.

-- 
Cheers,

Pete

----------------------------------------------------------
Which is worse: Ignorance or Apathy? Who knows? Who cares?
----------------------------------------------------------

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

Reply via email to