logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1560356 - in /logging/log4j/log4j2/trunk: log4j-api/src/main/java/org/apache/logging/log4j/Level.java src/changes/changes.xml
Date Wed, 22 Jan 2014 14:13:30 GMT
Author: ggregory
Date: Wed Jan 22 14:13:29 2014
New Revision: 1560356

URL: http://svn.apache.org/r1560356
Log:
[LOG4J-508] Add new Levels: NOTICE, DIAG, VERBOSE. New APIs to come.

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
    logging/log4j/log4j2/trunk/src/changes/changes.xml

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java?rev=1560356&r1=1560355&r2=1560356&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
Wed Jan 22 14:13:29 2014
@@ -25,8 +25,11 @@ import java.util.Locale;
  * <li>{@link #FATAL}</li>
  * <li>{@link #ERROR}</li>
  * <li>{@link #WARN}</li>
+ * <li>{@link #NOTICE}</li>
  * <li>{@link #INFO}</li>
+ * <li>{@link #DIAG}</li>
  * <li>{@link #DEBUG}</li>
+ * <li>{@link #VERBOSE}</li>
  * <li>{@link #TRACE}</li>
  * <li>{@link #ALL} (least specific)</li>
  * </ul>
@@ -58,19 +61,34 @@ public enum Level {
     WARN(300),
 
     /**
-     * An event for informational purposes.
+     * An event for normal, but significant, conditions.
      */
-    INFO(400),
+    NOTICE(400),
 
     /**
-     * A general debugging event.
+     * An event for informational purposes, but not necessarily significant.
      */
-    DEBUG(500),
+    INFO(500),
+
+    /**
+     * An event used by operations or users to diagnose problems in the system.
+     */
+    DIAG(600),
+
+    /**
+     * A general debugging event, used by developers for internal debugging.
+     */
+    DEBUG(700),
+
+    /**
+     * Used to log minute details of the system.  As its dictionary definition implies this
is extremely chatty.
+     */
+    VERBOSE(800),
 
     /**
      * A fine-grained debug message, typically capturing the flow through the application.
      */
-    TRACE(600),
+    TRACE(900),
 
     /**
      * All events should be logged.

Modified: logging/log4j/log4j2/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/changes/changes.xml?rev=1560356&r1=1560355&r2=1560356&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/changes/changes.xml (original)
+++ logging/log4j/log4j2/trunk/src/changes/changes.xml Wed Jan 22 14:13:29 2014
@@ -20,7 +20,10 @@
     <title>Changes</title>
   </properties>
   <body>
-    <release version="2.0-RC1" date="2014-MM-DD" description="Bug fixes and enhancements">
  
+    <release version="2.0-RC1" date="2014-MM-DD" description="Bug fixes and enhancements">
 
+      <action issue="LOG4J2-508" dev="ggregory" type="add">
+        Add new Levels: NOTICE, DIAG, VERBOSE.
+      </action>
       <action issue="LOG4J2-507" dev="ggregory" type="update">
         Space Level numbers by 100 instead of 1.
       </action>



Mime
View raw message