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/06/11 09:55:13 UTC

logging-log4j2 git commit: [LOG4J2-1023] New RewritePolicy for changing level of a log event. I've made the nested element follow the same naming convention as other policies in this package: "KeyValuePair".

Repository: logging-log4j2
Updated Branches:
  refs/heads/master d55f00fbf -> 2d5c3d4ee


[LOG4J2-1023] New RewritePolicy for changing level of a log event. I've
made the nested element follow the same naming convention as other
policies in this package: "KeyValuePair".

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

Branch: refs/heads/master
Commit: 2d5c3d4ee9e20f8790d7fbba1b20e17c391a5d7d
Parents: d55f00f
Author: Gary Gregory <ga...@gmail.com>
Authored: Thu Jun 11 00:54:58 2015 -0700
Committer: Gary Gregory <ga...@gmail.com>
Committed: Thu Jun 11 00:54:58 2015 -0700

----------------------------------------------------------------------
 .../log4j/core/appender/rewrite/LoggerNameLevelRewritePolicy.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/2d5c3d4e/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rewrite/LoggerNameLevelRewritePolicy.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rewrite/LoggerNameLevelRewritePolicy.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rewrite/LoggerNameLevelRewritePolicy.java
index a485461..36f3e26 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rewrite/LoggerNameLevelRewritePolicy.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rewrite/LoggerNameLevelRewritePolicy.java
@@ -51,7 +51,7 @@ public class LoggerNameLevelRewritePolicy implements RewritePolicy {
     public static LoggerNameLevelRewritePolicy createPolicy(
             // @formatter:off
             @PluginAttribute("logger") final String loggerNamePrefix,
-            @PluginElement("LevelPair") final KeyValuePair[] levelPairs) {
+            @PluginElement("KeyValuePair") final KeyValuePair[] levelPairs) {
             // @formatter:on
         final Map<Level, Level> newMap = new HashMap<>(levelPairs.length);
         for (final KeyValuePair keyValuePair : levelPairs) {