DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25475>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25475 ErrorHandler does not work for SocketAppender Summary: ErrorHandler does not work for SocketAppender Product: Log4j Version: 1.2beta Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Appender AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi, I was trying to use the errorHandler features in order to intercept the errors instead of printing the message on the screen and I found out that it does not work. I change the line 204 in file SocketAppender.java as follow LogLog.error(msg, e); --> getErrorHandler().error(msg,e,0); and now when the socket cannot establish a connection call the error handler insted of printing the message on the console. I think that this is the correct behaviour of the appender. Cheers Luca --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]