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 2015/08/26 21:27:10 UTC
logging-log4j2 git commit: Add
org.apache.logging.log4j.core.filter.ThresholdFilter.getLevel() (useful for
tests).
Repository: logging-log4j2
Updated Branches:
refs/heads/master 288f34bc1 -> 134d47949
Add org.apache.logging.log4j.core.filter.ThresholdFilter.getLevel()
(useful for tests).
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/134d4794
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/134d4794
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/134d4794
Branch: refs/heads/master
Commit: 134d47949d2b9e94064cb033b29fb658ce7f8f46
Parents: 288f34b
Author: ggregory <gg...@apache.org>
Authored: Wed Aug 26 12:27:06 2015 -0700
Committer: ggregory <gg...@apache.org>
Committed: Wed Aug 26 12:27:06 2015 -0700
----------------------------------------------------------------------
.../org/apache/logging/log4j/core/filter/ThresholdFilter.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/134d4794/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/ThresholdFilter.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/ThresholdFilter.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/ThresholdFilter.java
index 34b0307..02246eb 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/ThresholdFilter.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/ThresholdFilter.java
@@ -74,6 +74,10 @@ public final class ThresholdFilter extends AbstractFilter {
return level.isMoreSpecificThan(this.level) ? onMatch : onMismatch;
}
+ public Level getLevel() {
+ return level;
+ }
+
@Override
public String toString() {
return level.toString();