logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpo...@apache.org
Subject svn commit: r1592220 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusConsoleListener.java
Date Sat, 03 May 2014 15:31:19 GMT
Author: rpopma
Date: Sat May  3 15:31:19 2014
New Revision: 1592220

URL: http://svn.apache.org/r1592220
Log:
removed unused default constructor and accompanying system property lookup

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusConsoleListener.java

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusConsoleListener.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusConsoleListener.java?rev=1592220&r1=1592219&r2=1592220&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusConsoleListener.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusConsoleListener.java
Sat May  3 15:31:19 2014
@@ -19,7 +19,6 @@ package org.apache.logging.log4j.status;
 import java.io.PrintStream;
 
 import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.util.PropertiesUtil;
 
 /**
  * StatusListener that writes to the Console.
@@ -27,24 +26,11 @@ import org.apache.logging.log4j.util.Pro
 @SuppressWarnings("UseOfSystemOutOrSystemErr")
 public class StatusConsoleListener implements StatusListener {
 
-    private static final String STATUS_LEVEL = "org.apache.logging.log4j.StatusLevel";
-
     private Level level = Level.FATAL;
-
     private String[] filters = null;
-
     private final PrintStream stream;
 
     /**
-     * Creates the StatusConsoleListener using either the level configured by the
-     * {@value #STATUS_LEVEL} system property if it is set or to a
-     * default value of FATAL.
-     */
-    public StatusConsoleListener() {
-        this(Level.toLevel(PropertiesUtil.getProperties().getStringProperty(STATUS_LEVEL),
Level.FATAL));
-    }
-
-    /**
      * Creates the StatusConsoleListener using the supplied Level.
      * @param level The Level of status messages that should appear on the console.
      */



Mime
View raw message