com.atlassian.confluence.util
Class PatternLayoutWithStackTrace
java.lang.Object
org.apache.log4j.Layout
org.apache.log4j.PatternLayout
com.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.
| 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 |
| 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 |
PatternLayoutWithStackTrace
public PatternLayoutWithStackTrace()
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.