ceki 01/08/06 15:00:31 Modified: src/java/org/apache/log4j MDC.java Log: Preliminary javadocs. Revision Changes Path 1.4 +16 -2 jakarta-log4j/src/java/org/apache/log4j/MDC.java Index: MDC.java =================================================================== RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/MDC.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- MDC.java 2001/08/06 19:40:29 1.3 +++ MDC.java 2001/08/06 22:00:31 1.4 @@ -12,10 +12,24 @@ import org.apache.log4j.helpers.ThreadLocalMap; /** + The MDC class supercedes the {@link NDC} class. It provides + <em>mapped diagnostic contexts</em>. A <em>Mapped Diagnostic + Context</em>, or MDC in short, is an instrument to distinguish + interleaved log output from different sources. Log output is + typically interleaved when a server handles multiple clients + near-simultaneously. + + <p><b><em>The MDC is managed on a per thread basis</em></b>. A + child thread automatically inherits an <em>copy</em> of the mapped + diagnostic context of its parent which is managed independently of + the parent's context. + + <p>The MDC requires JDK 1.2. It will not work under JDK 1.1. + + @since 1.2 - @author Ceki Gülcü - */ + @author Ceki Gülcü */ public class MDC { final static ThreadLocalMap context = new ThreadLocalMap(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]