Home » juddi-tomcat-3.0.1 » examples » [javadoc | source]
examples
public class: MyPatternLayout [javadoc | source]
java.lang.Object
   org.apache.log4j.Layout
      org.apache.log4j.PatternLayout
         examples.MyPatternLayout

All Implemented Interfaces:
    OptionHandler

Example showing how to extend PatternLayout to recognize additional conversion characters.

In this case MyPatternLayout recognizes %# conversion pattern. It outputs the value of an internal counter which is also incremented at each call.

See source code for more details.

Fields inherited from org.apache.log4j.PatternLayout:
DEFAULT_CONVERSION_PATTERN,  TTCC_CONVERSION_PATTERN,  BUF_SIZE,  MAX_CAPACITY
Fields inherited from org.apache.log4j.Layout:
LINE_SEP,  LINE_SEP_LEN
Constructor:
 public MyPatternLayout() 
 public MyPatternLayout(String pattern) 
Method from examples.MyPatternLayout Summary:
createPatternParser,   main
Methods from org.apache.log4j.PatternLayout:
activateOptions,   createPatternParser,   format,   getConversionPattern,   ignoresThrowable,   setConversionPattern
Methods from org.apache.log4j.Layout:
activateOptions,   format,   getContentType,   getFooter,   getHeader,   ignoresThrowable
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from examples.MyPatternLayout Detail:
 public PatternParser createPatternParser(String pattern) 
 public static  void main(String[] args)