com.synametrics.commons.util.logging
Class PerformanceLayout

java.lang.Object
  |
  +--org.apache.log4j.Layout
        |
        +--org.apache.log4j.PatternLayout
              |
              +--com.synametrics.commons.util.logging.PerformanceLayout
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class PerformanceLayout
extends org.apache.log4j.PatternLayout

This is an extension of PatternLayout class in Log4j. This class recognizes the PerformanceInfo object and returns a formatted message.


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
PerformanceLayout()
           
 
Method Summary
 java.lang.String format(org.apache.log4j.spi.LoggingEvent event)
           
 
Methods inherited from class org.apache.log4j.PatternLayout
activateOptions, createPatternParser, getConversionPattern, ignoresThrowable, 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

PerformanceLayout

public PerformanceLayout()
Method Detail

format

public java.lang.String format(org.apache.log4j.spi.LoggingEvent event)
Overrides:
format in class org.apache.log4j.PatternLayout