https://issues.apache.org/bugzilla/show_bug.cgi?id=50486

--- Comment #52 from Patric Rufflar <[email protected]> ---
>Where should the shutdown method reside? In MDC? 

Within MDC would be ok, but for a matter of good design I would put this on an
higher level, e.g. inside LogManager.shutdown()


>What is the benefit over clear()? 
>The shutdown method would only affect the current thread btw - other threads 
>>would keep the tlm.

In fact, the opposite is true:
>From a real-world perspective, all we need is one method which cares about all
threads. This method would be called (for example) in the contextDestroyed()
method of a web application and would ensure that the application will never
leak again after it has been shut down.

IMHO, this would be a one-liner. (just set tlm to null - instead of calling
tlm.remove()).

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to