LOG4J2-1334     synchronous logging is now garbage-free; enable this by default


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/22e98d60
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/22e98d60
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/22e98d60

Branch: refs/heads/LOG4j2-494
Commit: 22e98d608d11b950bc90c582d996fbe94822329b
Parents: 04ee75f
Author: rpopma <[email protected]>
Authored: Fri Apr 22 14:54:09 2016 +0900
Committer: Ralph Goers <[email protected]>
Committed: Mon Apr 25 21:30:29 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/logging/log4j/core/config/LoggerConfig.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/22e98d60/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
index 7b030c6..3a3e04c 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
@@ -84,7 +84,7 @@ public class LoggerConfig extends AbstractFilterable {
             }
         }
         if (LOG_EVENT_FACTORY == null) {
-            LOG_EVENT_FACTORY = false //Constants.ENABLE_THREADLOCALS
+            LOG_EVENT_FACTORY = Constants.ENABLE_THREADLOCALS
                     ? new ReusableLogEventFactory()
                     : new DefaultLogEventFactory();
         }

Reply via email to