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