You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2016/04/22 08:08:39 UTC
logging-log4j2 git commit: Useful toString(),
especially when you use the Eclipse JUnit view.
Repository: logging-log4j2
Updated Branches:
refs/heads/master 61da5dc91 -> 130dfb4ff
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/130dfb4f
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/130dfb4f
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/130dfb4f
Branch: refs/heads/master
Commit: 130dfb4ff0ab93f2aabc8e62f417e942bc367237
Parents: 61da5dc
Author: ggregory <gg...@apache.org>
Authored: Thu Apr 21 23:08:36 2016 -0700
Committer: ggregory <gg...@apache.org>
Committed: Thu Apr 21 23:08:36 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/130dfb4f/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();
+ }
}