Great! Until then, will MDC.getContext().clear() actually work, assuming I catch the NPE?
Fergus On Sat, Mar 15, 2003 at 11:45:05AM -0800, Ceki Gulcu wrote: > > Fergus, > > An MDC.clear method has been added. It will be > available in log4j 1.3. > > --- Fergus Gallagher <[EMAIL PROTECTED]> > wrote: > > In servlets, for example, threads are reused, so > > entries in the MDC will get > > carried over from one request to the next. There's > > no direct way to clear > > the MDC, so will > > > > MDC.getContext().clear(); > > > > cause any problems? The docs say this is for > > "internal" use. > > The return value of MDC.getContext can be null. > > -- > Ceki > > __________________________________________________ > Do you Yahoo!? > Yahoo! Web Hosting - establish your business online > http://webhosting.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Fergus Gallagher Tel: +44 (20) 8742 1600 Orbis Fax: +44 (20) 8742 2649 414 Chiswick High Street email: [EMAIL PROTECTED] London W4 5TL Web: http://www.orbisuk.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
