logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1580745 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/simple/SimpleLogger.java
Date Mon, 24 Mar 2014 05:03:01 GMT
Author: ggregory
Date: Mon Mar 24 05:03:00 2014
New Revision: 1580745

URL: http://svn.apache.org/r1580745
Log:
Sort methods.

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/simple/SimpleLogger.java

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/simple/SimpleLogger.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/simple/SimpleLogger.java?rev=1580745&r1=1580744&r2=1580745&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/simple/SimpleLogger.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/simple/SimpleLogger.java
Mon Mar 24 05:03:00 2014
@@ -92,18 +92,29 @@ public class SimpleLogger extends Abstra
         }
     }
 
-    public void setStream(final PrintStream stream) {
-        this.stream = stream;
+    @Override
+    public boolean isEnabled(final Level level, final Marker marker, final Message msg, final
Throwable t) {
+        return this.level.intLevel() >= level.intLevel();
     }
 
-    public Level getLevel() {
-        return level;
+    @Override
+    public boolean isEnabled(final Level level, final Marker marker, final Object msg, final
Throwable t) {
+        return this.level.intLevel() >= level.intLevel();
     }
 
-    public void setLevel(final Level level) {
-        if (level != null) {
-            this.level = level;
-        }
+    @Override
+    public boolean isEnabled(final Level level, final Marker marker, final String msg) {
+        return this.level.intLevel() >= level.intLevel();
+    }
+
+    @Override
+    public boolean isEnabled(final Level level, final Marker marker, final String msg, final
Object... p1) {
+        return this.level.intLevel() >= level.intLevel();
+    }
+
+    @Override
+    public boolean isEnabled(final Level level, final Marker marker, final String msg, final
Throwable t) {
+        return this.level.intLevel() >= level.intLevel();
     }
 
     @Override
@@ -152,29 +163,14 @@ public class SimpleLogger extends Abstra
         stream.println(sb.toString());
     }
 
-    @Override
-    public boolean isEnabled(final Level level, final Marker marker, final String msg, final
Throwable t) {
-        return this.level.intLevel() >= level.intLevel();
-    }
-
-    @Override
-    public boolean isEnabled(final Level level, final Marker marker, final String msg) {
-        return this.level.intLevel() >= level.intLevel();
-    }
-
-    @Override
-    public boolean isEnabled(final Level level, final Marker marker, final String msg, final
Object... p1) {
-        return this.level.intLevel() >= level.intLevel();
-    }
-
-    @Override
-    public boolean isEnabled(final Level level, final Marker marker, final Object msg, final
Throwable t) {
-        return this.level.intLevel() >= level.intLevel();
+    public void setLevel(final Level level) {
+        if (level != null) {
+            this.level = level;
+        }
     }
 
-    @Override
-    public boolean isEnabled(final Level level, final Marker marker, final Message msg, final
Throwable t) {
-        return this.level.intLevel() >= level.intLevel();
+    public void setStream(final PrintStream stream) {
+        this.stream = stream;
     }
 
 }



Mime
View raw message