logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43637] New: - SocketAppender.append(LoggingEvent) calls the ErrorHandler without the LoggingEvent as parameter
Date Tue, 16 Oct 2007 13:31:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43637>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43637

           Summary: SocketAppender.append(LoggingEvent) calls the
                    ErrorHandler without the LoggingEvent as parameter
           Product: Log4j
           Version: 1.2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: rosendorf@gmx.de


In the Method SocketAppender.append(LoggingEvent) the errorHandler is called
without the LoggingEvent. 
In the case of an error, the LoggingEvent is lost.

There are two places to fix the problem:
- errorHandler.error("No remote host is set for SocketAppender named \""+
  this.name+"\".", null, ErrorCode.GENERIC_FAILURE, event);

- errorHandler.error("Detected problem with connection, not reconnecting.", e,
  ErrorCode.GENERIC_FAILURE, event);

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message