com.acsinet_solutions.util.log
Class AbstractLog4JPatternLayout

java.lang.Object
  extended by org.apache.log4j.Layout
      extended by org.apache.log4j.PatternLayout
          extended by 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

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
AbstractLog4JPatternLayout()
          Constructor for Log4JExtendedPatternLayout
AbstractLog4JPatternLayout(java.lang.String pattern)
          Constructor for Log4JExtendedPatternLayout
 
Method Summary
 java.lang.String format(org.apache.log4j.spi.LoggingEvent event)
           
protected abstract  ExceptionDataWriter getExceptionDataWriter()
          Get the exception data writer instance that will be used to print exceptions for the current class.
 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

AbstractLog4JPatternLayout

public AbstractLog4JPatternLayout()
Constructor for Log4JExtendedPatternLayout


AbstractLog4JPatternLayout

public AbstractLog4JPatternLayout(java.lang.String pattern)
Constructor for Log4JExtendedPatternLayout

Method Detail

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.