You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2016/04/26 06:31:23 UTC

[27/34] logging-log4j2 git commit: Useful toString(), especially when you use the Eclipse JUnit view.

Useful toString(), especially when you use the Eclipse JUnit view.


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

Branch: refs/heads/LOG4j2-494
Commit: 67070d393bd6ea427a6d7748622b7737ab529a9a
Parents: bc81c74
Author: ggregory <gg...@apache.org>
Authored: Thu Apr 21 23:08:36 2016 -0700
Committer: Ralph Goers <rg...@nextiva.com>
Committed: Mon Apr 25 21:30:30 2016 -0700

----------------------------------------------------------------------
 .../apache/logging/log4j/junit/LoggerContextRule.java    | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/67070d39/log4j-core/src/test/java/org/apache/logging/log4j/junit/LoggerContextRule.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/junit/LoggerContextRule.java b/log4j-core/src/test/java/org/apache/logging/log4j/junit/LoggerContextRule.java
index 5bbda4f..59e921d 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/junit/LoggerContextRule.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/junit/LoggerContextRule.java
@@ -204,4 +204,15 @@ public class LoggerContextRule implements TestRule {
         }
         throw new AssertionError("No ListAppender named " + name + " found.");
     }
+
+    @Override
+    public String toString() {
+        StringBuilder builder = new StringBuilder();
+        builder.append("LoggerContextRule [configLocation=");
+        builder.append(configLocation);
+        builder.append(", contextSelectorClass=");
+        builder.append(contextSelectorClass);
+        builder.append("]");
+        return builder.toString();
+    }
 }