logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Takacs Bence <be...@watt22.hu>
Subject Re: network using appenders when network is down
Date Wed, 16 Aug 2006 12:50:42 GMT

> 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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message