logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: Catching Log4j Exceptions
Date Tue, 04 Oct 2005 20:50:04 GMT
Quoting illumine@speakeasy.net:

> I have a question which has likely been answered (sorry, couldn't find
> it):  I'm using a UDPAppender so I want to be able to catch exceptions
> like UnknownHostException or BindException, but if I do...
>
> log.info("sending UDP message");
>
> and it fails, the Exception is sent to the console, but I'm not able to
> catch it in my code.  What is the intended way that I should handle
> these types of exceptions?
>

Log4j should never ever throw exceptions from its public api.  What is the
exception?  Please provide the stacktrace.

Jake

> Thanks for any help!
> /ErikAnthony
>
> p.s.
> If there is a wiki or FAQ that I should normally consult (other than
> the archive of this user list) that would be really helpful too.
> Thanks again!
> /EA
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>




---------------------------------------------------------------------
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