de.fhg.igd.logging.log4j
Class StandardLayout
java.lang.Object
org.apache.log4j.Layout
de.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 |
Methods inherited from class org.apache.log4j.Layout |
getContentType, getFooter, getHeader |
cm_
protected Chronometer cm_
- The
Chronometer
that creates the intervals between
two anchor timestamp log entries
StandardLayout
public StandardLayout(Chronometer cm)
- Create a Log4J
StandardLayout
.
- Parameters:
cm
- The Chronometer
for this layout
- Throws:
IllegalArgumentException
- if the Chronometer
is
null
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.