Re: network using appenders when network is down

2006-08-16 Thread James Stauffer
Look at WriterAppender.setErrorHandler On 8/16/06, Takacs Bence <[EMAIL PROTECTED]> wrote: Hello Our servers have small storage, so I don't want to use FileAppender. What can I do if the LAN is down and my appender wants to send an email or send a Socket message? The buffer will be deleted if t

RE: network using appenders when network is down

2006-08-16 Thread Dave Hoffer
How does one unsubscribe from this list? I have tried [EMAIL PROTECTED] several times with no success. -dh -Original Message- From: Bender Heri [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 9:14 AM To: Log4J Users List Subject: RE: network using appenders when network is

RE: network using appenders when network is down

2006-08-16 Thread Bender Heri
Subclass the SMTP appender for catching any send errors and retry send the log message to Localmachine, where a you provide a listener which logs into a file. Heri > -Original Message- > From: Takacs Bence [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 16, 2006 2:22 PM > To: Log4J Us

Re: network using appenders when network is down

2006-08-16 Thread Norbert Toth-Gati
And how can I check the networking and call the suitable appender without writing my own appender? This is implementation decision. Is there any possibility to make this ckeck from log4j configuration (properties or xml file)? I don't know of any Or maybe I can catch the exception of Soc

Re: network using appenders when network is down

2006-08-16 Thread Takacs Bence
a possible solution for not lossing messages in case of LAN being down would be to use an other appender (FileAppender) in such cases. Either you check if there is network connection and continue as usually, if there is, or use a FileAppender in case of a problem, either you subclass the needed

Re: network using appenders when network is down

2006-08-16 Thread Norbert Toth-Gati
Hi, a possible solution for not lossing messages in case of LAN being down would be to use an other appender (FileAppender) in such cases. Either you check if there is network connection and continue as usually, if there is, or use a FileAppender in case of a problem, either you subclass the need