Log4j 1.3alpha

org.apache.log4j.pattern
Class MDCPatternConverter

java.lang.Object
  |
  +--org.apache.log4j.pattern.PatternConverter
        |
        +--org.apache.log4j.pattern.MDCPatternConverter

public class MDCPatternConverter
extends PatternConverter

Return the events thread (usually the current thread) in a StringBuffer. This buffer is recycled!

Author:
Ceki Gülcü

Field Summary
 
Fields inherited from class org.apache.log4j.pattern.PatternConverter
next
 
Constructor Summary
MDCPatternConverter()
           
 
Method Summary
 java.lang.StringBuffer convert(LoggingEvent event)
          Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.
 
Methods inherited from class org.apache.log4j.pattern.PatternConverter
format, getOption, setFormattingInfo, setOption, spacePad
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDCPatternConverter

public MDCPatternConverter()
Method Detail

convert

public java.lang.StringBuffer convert(LoggingEvent event)
Description copied from class: PatternConverter
Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.

Specified by:
convert in class PatternConverter

Log4j 1.3alpha

Copyright 2000-2003 Apache Software Foundation.