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 2012/11/04 20:03:04 UTC
svn commit: r1405610 -
/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/filter/DynamicThresholdFilter.java
Author: ggregory
Date: Sun Nov 4 19:03:03 2012
New Revision: 1405610
URL: http://svn.apache.org/viewvc?rev=1405610&view=rev
Log:
Better param and lvar names.
Modified:
logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/filter/DynamicThresholdFilter.java
Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/filter/DynamicThresholdFilter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/filter/DynamicThresholdFilter.java?rev=1405610&r1=1405609&r2=1405610&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/filter/DynamicThresholdFilter.java (original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/filter/DynamicThresholdFilter.java Sun Nov 4 19:03:03 2012
@@ -117,7 +117,7 @@ public final class DynamicThresholdFilte
* Create the DynamicThresholdFilter.
* @param key The name of the key to compare.
* @param pairs An array of value and Level pairs.
- * @param level The default Level.
+ * @param levelName The default Level.
* @param match The action to perform if a match occurs.
* @param mismatch The action to perform if no match occurs.
* @return The DynamicThresholdFilter.
@@ -125,7 +125,7 @@ public final class DynamicThresholdFilte
@PluginFactory
public static DynamicThresholdFilter createFilter(@PluginAttr("key") String key,
@PluginElement("pairs") KeyValuePair[] pairs,
- @PluginAttr("defaultThreshold") String level,
+ @PluginAttr("defaultThreshold") String levelName,
@PluginAttr("onmatch") String match,
@PluginAttr("onmismatch") String mismatch) {
Result onMatch = Result.toResult(match);
@@ -134,7 +134,7 @@ public final class DynamicThresholdFilte
for (KeyValuePair pair : pairs) {
map.put(pair.getKey(), Level.toLevel(pair.getValue()));
}
- Level l = Level.toLevel(level, Level.ERROR);
- return new DynamicThresholdFilter(key, map, l, onMatch, onMismatch);
+ Level level = Level.toLevel(levelName, Level.ERROR);
+ return new DynamicThresholdFilter(key, map, level, onMatch, onMismatch);
}
}