junit.log4j
Class JUnitLayout

java.lang.Object
  |
  +--org.apache.log4j.Layout
        |
        +--org.apache.log4j.PatternLayout
              |
              +--junit.log4j.JUnitLayout
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class JUnitLayout
extends org.apache.log4j.PatternLayout

Extension of PatternLayout to provide stack traces of throwables in the appenders. The additionally recognized conversion characters are:
Conversion Character Effect
T Print the stack trace of the throwable.

Created: Sat Nov 17 15:09:19 2001

Version:
$Revision: 1.1 $
Author:
Wolfgang Reissenberger

Fields inherited from class org.apache.log4j.PatternLayout
BUF_SIZE, DEFAULT_CONVERSION_PATTERN, MAX_CAPACITY, TTCC_CONVERSION_PATTERN
 
Fields inherited from class org.apache.log4j.Layout
LINE_SEP, LINE_SEP_LEN
 
Constructor Summary
JUnitLayout()
          Creates a new JUnitLayout instance.
JUnitLayout(java.lang.String pattern)
          Creates a new JUnitLayout instance.
 
Method Summary
 org.apache.log4j.helpers.PatternParser createPatternParser(java.lang.String pattern)
          Creates a new JUnitPatternParser.
 
Methods inherited from class org.apache.log4j.PatternLayout
activateOptions, format, getConversionPattern, ignoresThrowable, setConversionPattern
 
Methods inherited from class org.apache.log4j.Layout
getContentType, getFooter, getHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitLayout

public JUnitLayout()
Creates a new JUnitLayout instance.

JUnitLayout

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

createPatternParser

public org.apache.log4j.helpers.PatternParser createPatternParser(java.lang.String pattern)
Creates a new JUnitPatternParser.
Overrides:
createPatternParser in class org.apache.log4j.PatternLayout
Parameters:
pattern - conversion pattern
Returns:
a new JUnitPatternParser


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