Repository: logging-log4j2
Updated Branches:
  refs/heads/master ea6ad94e6 -> e2536923d


Add logging an exception.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/e2536923
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/e2536923
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/e2536923

Branch: refs/heads/master
Commit: e2536923dcdb065ca603e8f64c37c6cfa990e272
Parents: ea6ad94
Author: Gary Gregory <ggreg...@apache.org>
Authored: Thu Sep 22 01:00:07 2016 -0700
Committer: Gary Gregory <ggreg...@apache.org>
Committed: Thu Sep 22 01:00:07 2016 -0700

----------------------------------------------------------------------
 .../test/java/org/apache/logging/log4j/web/ServletAppenderTest.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/e2536923/log4j-web/src/test/java/org/apache/logging/log4j/web/ServletAppenderTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-web/src/test/java/org/apache/logging/log4j/web/ServletAppenderTest.java 
b/log4j-web/src/test/java/org/apache/logging/log4j/web/ServletAppenderTest.java
index d69455f..7621370 100644
--- 
a/log4j-web/src/test/java/org/apache/logging/log4j/web/ServletAppenderTest.java
+++ 
b/log4j-web/src/test/java/org/apache/logging/log4j/web/ServletAppenderTest.java
@@ -58,6 +58,7 @@ public class ServletAppenderTest {
             assertNotNull("No ServletAppender", appender);
             final Logger logger = LogManager.getLogger("Test");
             logger.info("This is a test");
+            logger.error("This is a test 2", new 
IllegalStateException().fillInStackTrace());
         } catch (final IllegalStateException e) {
             fail("Failed to initialize Log4j properly." + e.getMessage());
         } finally {

Reply via email to