logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r1562368 - in /logging/log4j/log4j2/trunk: log4j-api/src/main/java/org/apache/logging/log4j/Level.java log4j-core/src/test/java/org/apache/logging/log4j/test/ExtendedLevels.java
Date Wed, 29 Jan 2014 06:51:31 GMT
Author: rgoers
Date: Wed Jan 29 06:51:31 2014
New Revision: 1562368

URL: http://svn.apache.org/r1562368
Log:
Rename Level.getOrCreateLevel to Level.forName

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
    logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/test/ExtendedLevels.java

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=1562368&r1=1562367&r2=1562368&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 29 06:51:31 2014
@@ -200,7 +200,7 @@ public final class Level implements Comp
      * @return The Level.
      * @throws java.lang.IllegalArgumentException if the name is null or intValue is less
than zero.
      */
-    public static Level getOrCreateLevel(String name, int intValue) {
+    public static Level forName(String name, int intValue) {
         Level level = levels.get(name);
         if (level != null) {
             return level;

Modified: logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/test/ExtendedLevels.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/test/ExtendedLevels.java?rev=1562368&r1=1562367&r2=1562368&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/test/ExtendedLevels.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/test/ExtendedLevels.java
Wed Jan 29 06:51:31 2014
@@ -25,6 +25,6 @@ import org.apache.logging.log4j.core.con
 @Plugin(name="ExtendedLevel", category="Level")
 public class ExtendedLevels {
 
-    public static final Level NOTE = Level.getOrCreateLevel("NOTE", 350);
-    public static final Level DETAIL = Level.getOrCreateLevel("DETAIL", 450);
+    public static final Level NOTE = Level.forName("NOTE", 350);
+    public static final Level DETAIL = Level.forName("DETAIL", 450);
 }



Mime
View raw message