logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1418404 - /logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java
Date Fri, 07 Dec 2012 17:18:47 GMT
Author: ggregory
Date: Fri Dec  7 17:18:46 2012
New Revision: 1418404

URL: http://svn.apache.org/viewvc?rev=1418404&view=rev
Log:
Revert previous commit. Thanks to Ralph for catching my mistake.

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

Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java?rev=1418404&r1=1418403&r2=1418404&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java
(original)
+++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java
Fri Dec  7 17:18:46 2012
@@ -99,8 +99,9 @@ public class SimpleLoggerContext impleme
             return loggers.get(name);
         }
 
-        return loggers.putIfAbsent(name, new SimpleLogger(name, defaultLevel, showLogName,
showShortName, showDateTime,
+        loggers.putIfAbsent(name, new SimpleLogger(name, defaultLevel, showLogName, showShortName,
showDateTime,
             showContextMap, dateTimeFormat, props, stream));
+        return loggers.get(name);
     }
 
     public boolean hasLogger(String name) {



Mime
View raw message