Author: carnold
Date: Mon May 17 05:07:11 2010
New Revision: 944972
URL: http://svn.apache.org/viewvc?rev=944972&view=rev
Log:
Bug 48902: Add throwable{n} and {-n} pattern to EnhancedPatternLayout
Modified:
logging/log4j/companions/extras/trunk/src/test/resources/org/apache/log4j/enhancedPatternLayout.throwable
Modified:
logging/log4j/companions/extras/trunk/src/test/resources/org/apache/log4j/enhancedPatternLayout.throwable
URL:
http://svn.apache.org/viewvc/logging/log4j/companions/extras/trunk/src/test/resources/org/apache/log4j/enhancedPatternLayout.throwable?rev=944972&r1=944971&r2=944972&view=diff
==============================================================================
---
logging/log4j/companions/extras/trunk/src/test/resources/org/apache/log4j/enhancedPatternLayout.throwable
(original)
+++
logging/log4j/companions/extras/trunk/src/test/resources/org/apache/log4j/enhancedPatternLayout.throwable
Mon May 17 05:07:11 2010
@@ -30,3 +30,25 @@ java.lang.Exception: Test Exception
java.lang.Exception: Test Exception
%throwable{none}, no exception
%throwable{none}, with exception
+%throwable{0}, no exception
+%throwable{0}, with exception
+%throwable{1}, no exception
+%throwable{1}, with exception
+java.lang.Exception: Test Exception
+%throwable{100}, no exception
+%throwable{100}, with exception
+java.lang.Exception: Test Exception
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.testThrowable(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+%throwable{-n}, no exception
+%throwable{-n}, with exception
+java.lang.Exception: Test Exception
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.testThrowable(X)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]