com.atlassian.confluence.util
Class PatternLayoutWithStackTrace

java.lang.Object
  extended by org.apache.log4j.Layout
      extended by org.apache.log4j.PatternLayout
          extended by com.atlassian.confluence.util.PatternLayoutWithStackTrace
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler
Direct Known Subclasses:
PatternLayoutWithContext

public class PatternLayoutWithStackTrace
extends org.apache.log4j.PatternLayout

Pattern layout with specialist stack trace printing


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()
Overrides:
ignoresThrowable in class org.apache.log4j.PatternLayout

format

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

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.


Copyright © 2003–2015 Atlassian. All rights reserved.