com.atlassian.confluence.util
Class PatternLayoutWithContext

java.lang.Object
  extended byorg.apache.log4j.Layout
      extended byorg.apache.log4j.PatternLayout
          extended bycom.atlassian.confluence.util.PatternLayoutWithStackTrace
              extended bycom.atlassian.confluence.util.PatternLayoutWithContext
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class PatternLayoutWithContext
extends PatternLayoutWithStackTrace

Pattern layout that will dump the current Log4J MDC as a line between the initial log line and stack trace (if any) The general policy is that the MDC will be dumped if the log event level is ERROR or higher or if a stack trace has been included in the event.


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
PatternLayoutWithContext()
           
 
Methods inherited from class com.atlassian.confluence.util.PatternLayoutWithStackTrace
appendStackTrace, format, getNonCauseUnderlying, 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

PatternLayoutWithContext

public PatternLayoutWithContext()


Confluence is developed by Atlassian.