I'm currently using the DBAppender, and I'm looking through the API and I don't see anything that leads me to believe there's anything in place for handling errors with the appender. Is this true? If this is the case, what should I be doing to make this to happen?
I've searched the forums but found no useful information. This leads me to believe that either (a) people are not looking ahead to the 1.3 release and using the 1.2.x ErrorHandler interface, (b) nothing ever fails and therefore there is no need for a backup appender, or (c) I have missed something obvious. What are others doing to achieve the fallback in case of appender error? Thanks, Jonathan PS: I'm sorry if this message was posted before, I tried to sent this last week, but I can't find it in the log4j-user list. -----Original Message----- From: Ceki Gülcü [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 14, 2006 3:02 PM To: Log4J Users List Subject: Re: ErrorHandler in log4j 1.3 The ErrorHandler idea sounds good but in practice it leads to a false sense of security, even worse, under certain circumstances its indiscriminate use can result in application failure. I think it is better to leave the implementation of the fallback mechanism to the failing appender instead of a general approach which does yield good results under fire. At 05:41 PM 3/14/2006, Jonathan Beer wrote: >Hello, > >I'm using log4j1.3-alpha8. > >I see that in alpha8 the ErrorHandler interface has been deprecated. > >What is the fallback method that will be used in 1.3 when the appender >is not available (for example, with a DBAppender, if the connection is >refused, or with a FileAppender without the proper permissions)? > >I thought the ErrorHandler mechanism was fairly useful with just a few >drawbacks. I was using the FallbackErrorHandler > - I didn't ever figure out how to have the FallbackErrorHandler >check for the original appender to be available again after a certain period > - The first message was completely dropped when log4j switched >appenders to the FallbackErrorHandler appender > >If anybody has any information about fallback appenders in log4j 1.3, >or are using 1.3 with a homegrown work around, please advise. > >Thanks, >Jonathan -- Ceki Gülcü http://ceki.blogspot.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
