org.apache.log4j.chainsaw.layout
Class EventDetailLayout

java.lang.Object
  extended by org.apache.log4j.Layout
      extended by org.apache.log4j.chainsaw.layout.EventDetailLayout
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class EventDetailLayout
extends org.apache.log4j.Layout

This layout is used for formatting HTML text for use inside the Chainsaw Event Detail Panel, and the tooltip used when mouse-over on a particular log event row. It relies an an internal PatternLayout to accomplish this, but ensures HTML characters from any LoggingEvent are escaped first.

Author:
Paul Smith

Field Summary
 
Fields inherited from class org.apache.log4j.Layout
LINE_SEP, LINE_SEP_LEN
 
Constructor Summary
EventDetailLayout()
           
 
Method Summary
 void activateOptions()
           
 java.lang.String format(org.apache.log4j.spi.LoggingEvent event)
           
 java.lang.String getConversionPattern()
           
 java.lang.String getFooter()
           
 java.lang.String getHeader()
           
 boolean ignoresThrowable()
           
 void setConversionPattern(java.lang.String conversionPattern)
           
 
Methods inherited from class org.apache.log4j.Layout
getContentType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventDetailLayout

public EventDetailLayout()
Method Detail

setConversionPattern

public void setConversionPattern(java.lang.String conversionPattern)

getConversionPattern

public java.lang.String getConversionPattern()

getFooter

public java.lang.String getFooter()
Overrides:
getFooter in class org.apache.log4j.Layout

getHeader

public java.lang.String getHeader()
Overrides:
getHeader in class org.apache.log4j.Layout

ignoresThrowable

public boolean ignoresThrowable()
Specified by:
ignoresThrowable in class org.apache.log4j.Layout

activateOptions

public void activateOptions()

format

public java.lang.String format(org.apache.log4j.spi.LoggingEvent event)
Specified by:
format in class org.apache.log4j.Layout


Copyright © 2007 Apache Software Foundation. All Rights Reserved.