You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by James Stauffer <js...@spscommerce.com> on 2004/06/28 20:21:31 UTC
Clear MDC
I hear 1.3 has a clear method for MDC. How can I do that in 1.2? Can I do
the following?
Enumeration enum = MDC.getContext().keys();
while(enum.hasMoreElements()) {
MDC.remove(enum.nextElement().toString());
}
James Stauffer