You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2016/09/08 14:55:08 UTC

logging-log4j2 git commit: Fix ExtendedLevelsTest to match documentation

Repository: logging-log4j2
Updated Branches:
  refs/heads/master d1e2e9659 -> 5cbf04fcf


Fix ExtendedLevelsTest to match documentation

The existing test did not use custom log levels the same way as they're documented in the manual. Confusing!


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

Branch: refs/heads/master
Commit: 5cbf04fcfbf5af7618665dc8080c8138ce221bff
Parents: d1e2e96
Author: Matt Sicker <bo...@gmail.com>
Authored: Thu Sep 8 09:55:24 2016 -0500
Committer: Matt Sicker <bo...@gmail.com>
Committed: Thu Sep 8 09:55:24 2016 -0500

----------------------------------------------------------------------
 .../java/org/apache/logging/log4j/test/ExtendedLevels.java    | 2 --
 log4j-core/src/test/resources/log4j-customLevel.xml           | 7 ++++++-
 2 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/5cbf04fc/log4j-core/src/test/java/org/apache/logging/log4j/test/ExtendedLevels.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/test/ExtendedLevels.java b/log4j-core/src/test/java/org/apache/logging/log4j/test/ExtendedLevels.java
index cf0aaae..5002ac9 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/test/ExtendedLevels.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/test/ExtendedLevels.java
@@ -17,12 +17,10 @@
 package org.apache.logging.log4j.test;
 
 import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.core.config.plugins.Plugin;
 
 /**
  *
  */
-@Plugin(name="ExtendedLevel", category="Level")
 public class ExtendedLevels {
 
     public static final Level NOTE = Level.forName("NOTE", 350);

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/5cbf04fc/log4j-core/src/test/resources/log4j-customLevel.xml
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/resources/log4j-customLevel.xml b/log4j-core/src/test/resources/log4j-customLevel.xml
index a80d07d..7a9c569 100644
--- a/log4j-core/src/test/resources/log4j-customLevel.xml
+++ b/log4j-core/src/test/resources/log4j-customLevel.xml
@@ -18,6 +18,11 @@
 -->
 <Configuration status="OFF" name="XMLConfigTest">
 
+  <CustomLevels>
+    <CustomLevel name="NOTE" intLevel="350"/>
+    <CustomLevel name="DETAIL" intLevel="450"/>
+  </CustomLevels>
+
   <Appenders>
     <Console name="STDOUT">
       <PatternLayout pattern="%m%n"/>
@@ -45,4 +50,4 @@
     </Root>
   </Loggers>
 
-</Configuration>
\ No newline at end of file
+</Configuration>