RE: Catching Log4j Exceptions

2005-10-04 Thread Scott Deboy
acob Kjome [mailto:[EMAIL PROTECTED] Sent: Tue 10/4/2005 2:31 PM To: Log4J Users List Subject: Re: Catching Log4j Exceptions Oh, ok, the exception is printing to the console, but is not blowing up your app. Log4j is doing what it should. It does not throw exceptions. It squashes them, but lets you

Re: Catching Log4j Exceptions

2005-10-04 Thread Jacob Kjome
Oh, ok, the exception is printing to the console, but is not blowing up your app. Log4j is doing what it should. It does not throw exceptions. It squashes them, but lets you know about it by printing the error. The fix is to either correct the Log4j configuration or, if the UDP address is prop

Re: Catching Log4j Exceptions

2005-10-04 Thread illumine
I'm seeing this error in my junit testing. I'm doing log.info(message). Before this call I've attached a UDPAppender (with a "badhost") and removed all other appenders. /EA 3050 [main] ERROR org.apache.log4j.net.UDPAppender - Could not find address of [badhost]. java.net.UnknownHostEx

Re: Catching Log4j Exceptions

2005-10-04 Thread Jacob Kjome
Quoting [EMAIL PROTECTED]: > 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 Excep

Catching Log4j Exceptions

2005-10-04 Thread illumine
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