Re: MDC does not properly clean up

2010-09-24 Thread Jacob Kjome
Since Log4j must support JDK1.4 (actually, still 1.3, I believe), I don't see how we could use JDK1.5+ ThreadLocal.remove()? That said, there are other ways of cleaning up ThreadLocals that don't require remove().  For examples, see CrazyBob's "Hard Core Java: ThreadLocal" from back in 2006 [1

MDC does not properly clean up

2010-09-24 Thread Marcel Stör
The initial problem description was sent to the users list: http://www.mail-archive.com/log4j-u...@logging.apache.org/msg11921.html However, I think it actually belongs here... I believe that the MDC should provide a method that internally calls ThreadLocal#remove which was added to the API wi