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
- Direct Known Subclasses:
- PatternLayoutWithContext
public class PatternLayoutWithStackTrace
- extends org.apache.log4j.PatternLayout
Pattern layout with specialist stack trace printing
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 |
Method Summary |
static void |
appendStackTrace(java.lang.StringBuffer buffer,
java.lang.Throwable t)
|
java.lang.String |
format(org.apache.log4j.spi.LoggingEvent loggingEvent)
|
static java.lang.Throwable |
getNonCauseUnderlying(java.lang.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 |
PatternLayoutWithStackTrace
public PatternLayoutWithStackTrace()
ignoresThrowable
public boolean ignoresThrowable()
- Overrides:
ignoresThrowable
in class org.apache.log4j.PatternLayout
format
public java.lang.String format(org.apache.log4j.spi.LoggingEvent loggingEvent)
- Overrides:
format
in class org.apache.log4j.PatternLayout
appendStackTrace
public static void appendStackTrace(java.lang.StringBuffer buffer,
java.lang.Throwable t)
getNonCauseUnderlying
public static java.lang.Throwable getNonCauseUnderlying(java.lang.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-2013 Atlassian. All Rights Reserved.