de.fhg.igd.logging.log4j
Class StandardLayout

java.lang.Object
  extended byorg.apache.log4j.Layout
      extended byde.fhg.igd.logging.log4j.StandardLayout
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class StandardLayout
extends org.apache.log4j.Layout

This class defines how to log entries written by the Log4J logger should look like.

Version:
"$Id: StandardLayout.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Matthias Pressfreund

Field Summary
protected  Chronometer cm_
          The Chronometer that creates the intervals between two anchor timestamp log entries
 
Fields inherited from class org.apache.log4j.Layout
LINE_SEP, LINE_SEP_LEN
 
Constructor Summary
StandardLayout(Chronometer cm)
          Create a Log4J StandardLayout.
 
Method Summary
 void activateOptions()
           
 String format(org.apache.log4j.spi.LoggingEvent event)
           
 boolean ignoresThrowable()
           
 String toString()
           
 
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, wait, wait, wait
 

Field Detail

cm_

protected Chronometer cm_
The Chronometer that creates the intervals between two anchor timestamp log entries

Constructor Detail

StandardLayout

public StandardLayout(Chronometer cm)
Create a Log4J StandardLayout.

Parameters:
cm - The Chronometer for this layout
Throws:
IllegalArgumentException - if the Chronometer is null
Method Detail

format

public String format(org.apache.log4j.spi.LoggingEvent event)

ignoresThrowable

public boolean ignoresThrowable()

activateOptions

public void activateOptions()

toString

public String toString()


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.