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/10/01 20:55:13 UTC

[jira] [Updated] (LOG4J2-85) Replace ThreadContext.push(String msg) with push(String msg, Object args...)

     [ https://issues.apache.org/jira/browse/LOG4J2-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers updated LOG4J2-85:
------------------------------

    Comment: was deleted

(was: 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.)
    
> Replace ThreadContext.push(String msg) with push(String msg, Object args...)
> ----------------------------------------------------------------------------
>
>                 Key: LOG4J2-85
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-85
>             Project: Log4j 2
>          Issue Type: Improvement
>            Reporter: Joern Huxhorn
>            Assignee: Ralph Goers
>             Fix For: 2.0-beta2
>
>
> Provide the option to use similar message formatting like the usual log methods. The API is still alpha so we can safely replace the method.
> If NDC functionality would be disabled (see LOG4J2-84) then message formatting wouldn't be performed at all, thus being significantly faster than always composing the message.

--
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