You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Volkan Yazici (Jira)" <ji...@apache.org> on 2019/12/31 09:14:00 UTC
[jira] [Created] (LOG4J2-2753) log4j2.enableThreadlocals flag
violation in AbstractStringLayout
Volkan Yazici created LOG4J2-2753:
-------------------------------------
Summary: log4j2.enableThreadlocals flag violation in AbstractStringLayout
Key: LOG4J2-2753
URL: https://issues.apache.org/jira/browse/LOG4J2-2753
Project: Log4j 2
Issue Type: Bug
Components: Layouts
Reporter: Volkan Yazici
{{Constants.ENABLE_THREADLOCALS}} constant used to toggle TLAs is not taken into account by {{AbstractStringLayout#getStringBuilder()}}. While the fix is trivial, given a notable amount of layouts extend from {{AbstractStringLayout}}, the impact surface is big: many web applications which used to take advantage of these layouts will observe a performance regression after upgrading to a Log4j 2.0 version with the fix. (See [the discussion in the mailing-list|https://lists.apache.org/thread.html/822e12dd384dd08d8e4899b474b855714ec97244e0365c461c0bd6d3%40%3Cdev.logging.apache.org%3E] for further details.)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)