com.atlassian.confluence.util
Class PatternLayoutWithStackTrace

java.lang.Object
  extended byorg.apache.log4j.Layout
      extended byorg.apache.log4j.PatternLayout
          extended bycom.atlassian.confluence.util.PatternLayoutWithStackTrace
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class PatternLayoutWithStackTrace
extends org.apache.log4j.PatternLayout

Created by IntelliJ IDEA. User: Tomd Date: 25/01/2006 Time: 14:54:04 To change this template use File | Settings | File Templates.


Field Summary
 
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
PatternLayoutWithStackTrace()
           
 
Method Summary
static void appendStackTrace(StringBuffer buffer, Throwable t)
           
 String format(org.apache.log4j.spi.LoggingEvent loggingEvent)
           
static Throwable getNonCauseUnderlying(Throwable t)
          Find the first underlying exception of t which you *can't* get by simply calling getCause() n times.
 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

PatternLayoutWithStackTrace

public PatternLayoutWithStackTrace()
Method Detail

ignoresThrowable

public boolean ignoresThrowable()

format

public String format(org.apache.log4j.spi.LoggingEvent loggingEvent)

appendStackTrace

public static void appendStackTrace(StringBuffer buffer,
                                    Throwable t)

getNonCauseUnderlying

public static Throwable getNonCauseUnderlying(Throwable t)
Find the first underlying exception of t which you *can't* get by simply calling getCause() n times.

Parameters:
t -
Returns:
the underl;ying exception, or null if there isn't one.


Confluence is developed by Atlassian.