logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1519730 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/simple/SimpleLogger.java
Date Tue, 03 Sep 2013 15:52:54 GMT
Author: ggregory
Date: Tue Sep  3 15:52:53 2013
New Revision: 1519730

URL: http://svn.apache.org/r1519730
Log:
Make org.apache.logging.log4j.simple.SimpleLogger.logName final.

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=1519730&r1=1519729&r2=1519730&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
Tue Sep  3 15:52:53 2013
@@ -54,7 +54,7 @@ public class SimpleLogger extends Abstra
 
     private PrintStream stream;
 
-    private String logName;
+    private final String logName;
 
 
     public SimpleLogger(final String name, final Level defaultLevel, final boolean showLogName,
@@ -73,6 +73,8 @@ public class SimpleLogger extends Abstra
             }
         } else if (showLogName) {
             this.logName = name;
+        } else {
+        	this.logName = null;
         }
         this.showDateTime = showDateTime;
         this.showContextMap = showContextMap;



Mime
View raw message