junit.log4j
Class JUnitPatternParser

java.lang.Object
  |
  +--org.apache.log4j.helpers.PatternParser
        |
        +--junit.log4j.JUnitPatternParser

public class JUnitPatternParser
extends org.apache.log4j.helpers.PatternParser

Extension of PatternParser writing the stack trace of the throwable to the result string.

Created: Sat Nov 17 15:19:09 2001

Version:
$Revision: 1.3 $
Author:
Wolfgang Reissenberger

Inner Class Summary
static class JUnitPatternParser.StacktracePatternConverter
          Converter writing the stack trace of the throwable.
 
Field Summary
static char STACKTRACE_CHAR
          The conversion character T stands for stack traces.
 
Fields inherited from class org.apache.log4j.helpers.PatternParser
currentLiteral, formattingInfo, i, pattern, patternLength
 
Constructor Summary
JUnitPatternParser(java.lang.String pattern)
          Creates a new JUnitPatternParser instance.
 
Method Summary
 void finalizeConverter(char formatChar)
          In case of T, the stack trace is written.
 
Methods inherited from class org.apache.log4j.helpers.PatternParser
addConverter, extractOption, extractPrecisionOption, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STACKTRACE_CHAR

public static final char STACKTRACE_CHAR
The conversion character T stands for stack traces.
Constructor Detail

JUnitPatternParser

public JUnitPatternParser(java.lang.String pattern)
Creates a new JUnitPatternParser instance.
Parameters:
pattern - the supplied conversion pattern
Method Detail

finalizeConverter

public void finalizeConverter(char formatChar)
In case of T, the stack trace is written. Otherwise, the character is delegated to the super class.
Overrides:
finalizeConverter in class org.apache.log4j.helpers.PatternParser
Parameters:
formatChar - the format character


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.