logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache <ralph.go...@dslextreme.com>
Subject Re: ThreadContext.removeAll
Date Sat, 26 Nov 2016 16:09:00 GMT
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 <mikael.staldal@magine.com> wrote:
> 
> Would it make sense to have a removeAll(Iterable<String>) method in ThreadContext,
as a companion to putAll(Map<String, String>)?
> 
> And a corresponding method in ThreadContextMap2, which can be implemented in an atomic
way similarly to putAll.
> 
> -- 
>  
> 
> Mikael Ståldal
> Senior software developer 
> 
> Magine TV
> mikael.staldal@magine.com <mailto:mikael.staldal@magine.com>    
> Grev Turegatan 3  | 114 46 Stockholm, Sweden  |   www.magine.com  <http://www.magine.com/>
> 
> Privileged and/or Confidential Information may be contained in this message. If you are
not the addressee indicated in this message
> (or responsible for delivery of the message to such a person), you may not copy or deliver
this message to anyone. In such case, 
> you should destroy this message and kindly notify the sender by reply email.   


Mime
View raw message