Repository: logging-log4j2 Updated Branches: refs/heads/master 03d25d5dd -> c1cd1faf3
LOG4J2-1269 AsyncLogger should use thread-local translator 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/c1cd1faf Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/c1cd1faf Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/c1cd1faf Branch: refs/heads/master Commit: c1cd1faf3b071efdf039b666ef7c956870a949a2 Parents: 03d25d5 Author: rpopma <[email protected]> Authored: Sat Feb 13 00:09:23 2016 +0900 Committer: rpopma <[email protected]> Committed: Sat Feb 13 00:09:23 2016 +0900 ---------------------------------------------------------------------- .../org/apache/logging/log4j/core/async/AsyncLoggerDisruptor.java | 2 +- src/changes/changes.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/c1cd1faf/log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerDisruptor.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerDisruptor.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerDisruptor.java index 1da2802..9fcf767 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerDisruptor.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerDisruptor.java @@ -45,7 +45,7 @@ class AsyncLoggerDisruptor { private ExecutorService executor; private String contextName; - private boolean useThreadLocalTranslator; + private boolean useThreadLocalTranslator = true; private long backgroundThreadId; private AsyncEventRouter asyncEventRouter; private int ringBufferSize; http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/c1cd1faf/src/changes/changes.xml ---------------------------------------------------------------------- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 85b515d..fdccb8a 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -24,6 +24,9 @@ </properties> <body> <release version="2.6" date="201Y-MM-DD" description="GA Release 2.6"> + <action issue="LOG4J2-1269" dev="rpopma" type="fix"> + AsyncLogger should use thread-local translator by default. + </action> <action issue="LOG4J2-1268" dev="rpopma" type="fix"> FixedDateFormat was incorrect for formats having MMM with the French locale. </action>
