[jira] [Commented] (LOG4J2-1689) ThreadContext.removeAll() method

2017-01-17 Thread ASF subversion and git services (JIRA)
ontextMap > ThreadContext.removeAll() method > > > Key: LOG4J2-1689 > URL: https://issues.apache.org/jira/browse/LOG4J2-1689 > Project: Log4j 2 > Issue Type: Improvement > Component

[jira] [Commented] (LOG4J2-1689) ThreadContext.removeAll() method

2017-01-17 Thread ASF subversion and git services (JIRA)
1689: - Commit 5b6322ae773d181a11e6633d0ec1e113f800012b in logging-log4j2's branch refs/heads/master from [~mikaelstaldal] [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=5b6322a ] LOG4J2-1689 Rename to CleanableThreadContextMap > ThreadContext.remove

Re: ThreadContext.removeAll

2016-11-28 Thread Mikael Ståldal
My use case was for a ThreadContext wrapper in the Scala API: https://issues.apache.org/jira/browse/LOG4J2-1690 On Sat, Nov 26, 2016 at 6:25 PM, Gary Gregory wrote: > Maybe in a unit test? But then why nit clear the whole map? > > Gary > > On Nov 26, 2016 8:09 AM, "Apache" wrote: > >> Do you ha

Re: ThreadContext.removeAll

2016-11-26 Thread Gary Gregory
Maybe in a unit test? But then why nit clear the whole map? Gary On Nov 26, 2016 8:09 AM, "Apache" wrote: > Do you have a use case for it? In all my usages of the ThreadContext I > always add attributes one at a time but then clear the whole > ThreadContextMap at the end of the request. It isn’

Re: ThreadContext.removeAll

2016-11-26 Thread Apache
Do you have a use case for it? In all my usages of the ThreadContext I always add attributes one at a time but then clear the whole ThreadContextMap at the end of the request. It isn’t clear to me why someone would want to remove a subset. Ralph > On Nov 10, 2016, at 5:55 AM, Mikael Ståldal w

Re: ThreadContext.removeAll

2016-11-25 Thread Gary Gregory
Seems ok with me if you have a use case for it, even if it just makes tests cleaner. Gary On Nov 10, 2016 4:55 AM, "Mikael Ståldal" wrote: > Would it make sense to have a removeAll(Iterable) method in > ThreadContext, as a companion to putAll(Map)? > > And a corresponding method in ThreadContex

[jira] [Closed] (LOG4J2-1689) ThreadContext.removeAll() method

2016-11-11 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikael Ståldal closed LOG4J2-1689. -- > ThreadContext.removeAll() method > > >

[jira] [Resolved] (LOG4J2-1689) ThreadContext.removeAll() method

2016-11-11 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikael Ståldal resolved LOG4J2-1689. Resolution: Fixed Fix Version/s: 2.8 In Git master. > ThreadContext.remove

[jira] [Commented] (LOG4J2-1689) ThreadContext.removeAll() method

2016-11-11 Thread JIRA
fore next release, we can add it. > ThreadContext.removeAll() method > > > Key: LOG4J2-1689 > URL: https://issues.apache.org/jira/browse/LOG4J2-1689 > Project: Log4j 2 > Issue Type: Improvement &

[jira] [Commented] (LOG4J2-1689) ThreadContext.removeAll() method

2016-11-11 Thread Gary Gregory (JIRA)
ce we might as well add whatever else rounds up the interface. What would that be? (On my phone ATM) > ThreadContext.removeAll() method > > > Key: LOG4J2-1689 > URL: https://issues.apache.org/jira/browse/LOG4J2-1689 &

[jira] [Commented] (LOG4J2-1689) ThreadContext.removeAll() method

2016-11-11 Thread Remko Popma (JIRA)
ster. > ThreadContext.removeAll() method > > > Key: LOG4J2-1689 > URL: https://issues.apache.org/jira/browse/LOG4J2-1689 > Project: Log4j 2 > Issue Type: Improvement > Components: AP

[jira] [Commented] (LOG4J2-1689) ThreadContext.removeAll() method

2016-11-11 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15657245#comment-15657245 ] Mikael Ståldal commented on LOG4J2-1689: Yes, done. > ThreadContext.re

[jira] [Commented] (LOG4J2-1689) ThreadContext.removeAll() method

2016-11-11 Thread Remko Popma (JIRA)
test? > ThreadContext.removeAll() method > > > Key: LOG4J2-1689 > URL: https://issues.apache.org/jira/browse/LOG4J2-1689 > Project: Log4j 2 > Issue Type: Improvement > Components: AP

[jira] [Commented] (LOG4J2-1689) ThreadContext.removeAll() method

2016-11-11 Thread JIRA
you think [~rem...@yahoo.com]? > ThreadContext.removeAll() method > > > Key: LOG4J2-1689 > URL: https://issues.apache.org/jira/browse/LOG4J2-1689 > Project: Log4j 2 > Issue Type: Improvement &

[jira] [Assigned] (LOG4J2-1689) ThreadContext.removeAll() method

2016-11-11 Thread JIRA
[ https://issues.apache.org/jira/browse/LOG4J2-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikael Ståldal reassigned LOG4J2-1689: -- Assignee: Mikael Ståldal > ThreadContext.removeAll() met

[jira] [Created] (LOG4J2-1689) ThreadContext.removeAll() method

2016-11-11 Thread JIRA
Mikael Ståldal created LOG4J2-1689: -- Summary: ThreadContext.removeAll() method Key: LOG4J2-1689 URL: https://issues.apache.org/jira/browse/LOG4J2-1689 Project: Log4j 2 Issue Type

ThreadContext.removeAll

2016-11-10 Thread Mikael Ståldal
Would it make sense to have a removeAll(Iterable) method in ThreadContext, as a companion to putAll(Map)? And a corresponding method in ThreadContextMap2, which can be implemented in an atomic way similarly to putAll. -- [image: MagineTV] *Mikael Ståldal* Senior software developer *Magine TV*