logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remko Popma (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LOG4J2-1516) Add ThreadContextMap.putAll(Map<String, String>)
Date Sat, 20 Aug 2016 00:03:21 GMT

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

Remko Popma resolved LOG4J2-1516.
---------------------------------
    Resolution: Fixed
      Assignee: Remko Popma  (was: Gary Gregory)

Fixed in master in commit 6a23301.

* Created separate ThreadContextMap2 interface 
* DefaultThreadContextMap and MDCContextMap implement the new interface
* ThreadContext call putAll on threadContextMap if it implements this interface, otherwise
puts elements one by one
* updated changes.xml

> Add ThreadContextMap.putAll(Map<String, String>)
> ------------------------------------------------
>
>                 Key: LOG4J2-1516
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1516
>             Project: Log4j 2
>          Issue Type: New Feature
>          Components: API
>            Reporter: Gary Gregory
>            Assignee: Remko Popma
>             Fix For: 2.7
>
>
> Add API {{ThreadContextMap.putAll(Map<String, String>)}}.
> My immediate goal is to be able to build a JUnit Rule to save and restore the thread
context around each unit test method and/or a given class.
> See [LOG4J2-1517].



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message