You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by mi...@apache.org on 2016/04/10 10:24:49 UTC

logging-log4j2 git commit: Use ENABLE_DIRECT_ENCODERS switch in GelfLayout

Repository: logging-log4j2
Updated Branches:
  refs/heads/LOG4J2-1356 a91a54b95 -> 880a78029


Use ENABLE_DIRECT_ENCODERS switch in GelfLayout


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

Branch: refs/heads/LOG4J2-1356
Commit: 880a7802991e9a71405085c025c247007268312b
Parents: a91a54b
Author: Mikael Ståldal <mi...@staldal.nu>
Authored: Sun Apr 10 10:22:40 2016 +0200
Committer: Mikael Ståldal <mi...@staldal.nu>
Committed: Sun Apr 10 10:22:40 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/880a7802/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/GelfLayout.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/GelfLayout.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/GelfLayout.java
index 8dae8c3..c378d9f 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/GelfLayout.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/GelfLayout.java
@@ -144,7 +144,7 @@ public final class GelfLayout extends AbstractStringLayout {
 
     @Override
     public void encode(final LogEvent event, final ByteBufferDestination destination) {
-        if (!Constants.ENABLE_THREADLOCALS || compressionType != CompressionType.OFF) {
+        if (!Constants.ENABLE_DIRECT_ENCODERS || !Constants.ENABLE_THREADLOCALS || compressionType != CompressionType.OFF) {
             super.encode(event, destination);
             return;
         }