com.acsinet_solutions.util.log
Class AbstractLog4JPatternLayout
java.lang.Object
org.apache.log4j.Layout
org.apache.log4j.PatternLayout
com.acsinet_solutions.util.log.AbstractLog4JPatternLayout
- All Implemented Interfaces:
- org.apache.log4j.spi.OptionHandler
- Direct Known Subclasses:
- Log4JCompactPatternLayout, Log4JExtendedPatternLayout
public abstract class AbstractLog4JPatternLayout
- extends org.apache.log4j.PatternLayout
Extension of the Log4J pattern to allow reporting of nested exceptions.
Particularly useful on pre-J2SE 1.4 environments where nested exceptions
were not natively supported.
This is a base class for subclasses withi different strategies.
- Author:
- Santiago Arriaga
- See Also:
ExceptionDataWriter
| 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 |
AbstractLog4JPatternLayout
public AbstractLog4JPatternLayout()
- Constructor for Log4JExtendedPatternLayout
AbstractLog4JPatternLayout
public AbstractLog4JPatternLayout(java.lang.String pattern)
- Constructor for Log4JExtendedPatternLayout
ignoresThrowable
public final boolean ignoresThrowable()
- Overrides:
ignoresThrowable in class org.apache.log4j.PatternLayout
format
public final java.lang.String format(org.apache.log4j.spi.LoggingEvent event)
- Overrides:
format in class org.apache.log4j.PatternLayout
getExceptionDataWriter
protected abstract ExceptionDataWriter getExceptionDataWriter()
- Get the exception data writer instance that will be used to print
exceptions for the current class.