[ https://issues.apache.org/jira/browse/LOG4J2-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers resolved LOG4J2-83. ------------------------------- Resolution: Fixed Fix Version/s: 2.0-beta2 Assignee: Ralph Goers I have added support for setting system properties named "disableThreadContext", "disableThreadContextMap" , and "disableThreadContextStack". If disableThreadContext is set to true, pushes and puts will be ignored and no HashMaps or ContextStacks will be created. Similarly, if disableThreadContextMap is set to true then puts to the ThreadContextMap will be ignored and no Map will be created. Finally, if disableThreadContextStack is set to true then pushes will be ignored and no ContextStack will be created. When these properties are set the ThreadLocals will still be created but will never have any values in them. > 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 > Assignee: Ralph Goers > Fix For: 2.0-beta2 > > > 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-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org