You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2008/12/12 17:10:38 UTC

DO NOT REPLY [Bug 46388] New: Layout ignoresThrowable Documentation mismatch implementation

https://issues.apache.org/bugzilla/show_bug.cgi?id=46388

           Summary: Layout ignoresThrowable Documentation mismatch
                    implementation
           Product: Log4j
           Version: 1.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: felipecrp@gmail.com


According to the documentation [1] the method ignoresThrowable() from
org.apache.log4j.Layout class should force the appender to not print the
stacktrace if the method return code is true. 

But in org.apache.log4j.net.SyslogAppender the behavior is just the oposite. It
may happen with other appenders.

The problem appear to be in the line 332: if (layout.ignoresThrowable()) {

Best regards,
Felipe Pinto


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

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


DO NOT REPLY [Bug 46388] Layout ignoresThrowable Documentation mismatch implementation

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46388


Curt Arnold <ca...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Curt Arnold <ca...@apache.org>  2009-01-08 09:24:53 PST ---
The reference for the potentially misleading documentation was not provided,
but I elaborated the Layout.ignoresThrowable javadoc.  

The SyslogAppender is properly interpreting the property.  If
Layout.ignoresThrowable is false, then the layout handles the throwable and the
appender should not do anything with the throwable.  If Layout.ignoresThrowable
is true, then the layout does not do anything with the throwable and the
appender is responsible for formatting the throwable. 

Committed rev 732766.


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

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