You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2012/09/24 16:44:08 UTC
[jira] [Commented] (LOG4J2-83) Please provide means to disable MDC
functionality on a global level.
[ https://issues.apache.org/jira/browse/LOG4J2-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461835#comment-13461835 ]
Ralph Goers commented on LOG4J2-83:
-----------------------------------
I am not convinced that completely disabling the MDC is a good idea as it could lead to application breakage. However, I am convinced that having the ThreadContext map be null in the LogEvent when there are no items in the Map is a very good idea. I plan on making that change and also plan on changing the Map stored in the LogEvent to be immutable.
> Please provide means to disable MDC functionality on a global level.
> --------------------------------------------------------------------
>
> Key: LOG4J2-83
> URL: https://issues.apache.org/jira/browse/LOG4J2-83
> Project: Log4j 2
> Issue Type: New Feature
> Reporter: Joern Huxhorn
>
> Disabling MDC evaluation can have drastic effects on event size while sending them over the wire or dumping them to disk.
> When disabled, all calls to MDC-related methods will instead call NOP implementations, i.e. no ThreadLocals would be used at all.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org