Author: carnold
Date: Thu Jan 8 09:24:28 2009
New Revision: 732766
URL: http://svn.apache.org/viewvc?rev=732766&view=rev
Log:
Bug 46388: Clarify javadoc of Layout.ignoresThrowable
Modified:
logging/log4j/trunk/src/changes/changes.xml
logging/log4j/trunk/src/main/java/org/apache/log4j/Layout.java
Modified: logging/log4j/trunk/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/logging/log4j/trunk/src/changes/changes.xml?rev=732766&r1=732765&r2=732766&view=diff
==============================================================================
--- logging/log4j/trunk/src/changes/changes.xml (original)
+++ logging/log4j/trunk/src/changes/changes.xml Thu Jan 8 09:24:28 2009
@@ -68,6 +68,7 @@
<action action="fix" issue="45982">Support %X layout specification to
output all MDC key-value pairs</action>
<action action="add" issue="45990">Add replyTo attribute to
SMTPAppender</action>
<action action="fix" issue="44644">SMTPAppender does not properly
encode subject or content containing non-ASCII characters.</action>
+ <action action="fix" issue="46388">Clarify javadoc of
Layout.ignoresThrowable.</action>
</release>
Modified: logging/log4j/trunk/src/main/java/org/apache/log4j/Layout.java
URL:
http://svn.apache.org/viewvc/logging/log4j/trunk/src/main/java/org/apache/log4j/Layout.java?rev=732766&r1=732765&r2=732766&view=diff
==============================================================================
--- logging/log4j/trunk/src/main/java/org/apache/log4j/Layout.java (original)
+++ logging/log4j/trunk/src/main/java/org/apache/log4j/Layout.java Thu Jan 8
09:24:28 2009
@@ -74,6 +74,8 @@
{...@link LoggingEvent}, then the layout should return
<code>false</code>. Otherwise, if the layout ignores throwable
object, then the layout should return <code>true</code>.
+ If ignoresThrowable is true, the appender is responsible for
+ rendering the throwable.
<p>The {...@link SimpleLayout}, {...@link TTCCLayout}, {...@link
PatternLayout} all return <code>true</code>. The {...@link
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]