info.aduna.logging.file.log4j
Class StackTracePatternLayout

java.lang.Object
  extended by org.apache.log4j.Layout
      extended by org.apache.log4j.PatternLayout
          extended by info.aduna.logging.file.log4j.StackTracePatternLayout
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class StackTracePatternLayout
extends org.apache.log4j.PatternLayout

PatternLayout that also prints stacktraces.

Author:
Herko ter Horst

Field Summary
 
Fields inherited from class org.apache.log4j.PatternLayout
BUF_SIZE, MAX_CAPACITY, TTCC_CONVERSION_PATTERN
 
Fields inherited from class org.apache.log4j.Layout
LINE_SEP, LINE_SEP_LEN
 
Constructor Summary
StackTracePatternLayout()
          Construct a StacktracePatternLayout with the default conversion pattern.
StackTracePatternLayout(String conversionPattern)
          Construct a StacktracePatternLayout with the specified conversion pattern.
 
Method Summary
 String format(org.apache.log4j.spi.LoggingEvent event)
           
 boolean ignoresThrowable()
           
 
Methods inherited from class org.apache.log4j.PatternLayout
activateOptions, createPatternParser, getConversionPattern, 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

StackTracePatternLayout

public StackTracePatternLayout()
Construct a StacktracePatternLayout with the default conversion pattern.


StackTracePatternLayout

public StackTracePatternLayout(String conversionPattern)
Construct a StacktracePatternLayout with the specified conversion pattern.

Parameters:
conversionPattern - the conversion pattern to use
See Also:
for information on conversion patterns.
Method Detail

format

public String format(org.apache.log4j.spi.LoggingEvent event)
Overrides:
format in class org.apache.log4j.PatternLayout

ignoresThrowable

public boolean ignoresThrowable()
Overrides:
ignoresThrowable in class org.apache.log4j.PatternLayout


Copyright © 1997-2008 Aduna. All Rights Reserved.