network using appenders when network is down

2006-08-16 Thread Takacs Bence
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 the server will reboot, and additionally I don't know what is the physical limit for

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

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

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

RE: network using appenders when network is down

2006-08-16 Thread Bender Heri
List Subject: network using appenders when network is down 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 the server

RE: network using appenders when network is down

2006-08-16 Thread Dave Hoffer
Users List Subject: network using appenders when network is down 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 the server

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