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 appender
and handle the problem inside your appender.

And how can I check the networking and call the suitable appender without writing my own appender? Is there any possibility to make this ckeck from log4j configuration (properties or xml file)?

Or maybe I can catch the exception of SocketAppender somehow...

Thanks:
        Bence


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

Reply via email to