java.lang.Objectorg.apache.log4j.Layout
Extend this abstract class to create your own log layout format.
Field Summary | |
static String |
LINE_SEP
|
static int |
LINE_SEP_LEN
|
Constructor Summary | |
Layout()
|
Method Summary | |
abstract String |
format(LoggingEvent event)
Implement this method to create your own layout format. |
String |
getContentType()
Returns the content type output by this layout. |
String |
getFooter()
Returns the footer for the layout format. |
String |
getHeader()
Returns the header for the layout format. |
abstract boolean |
ignoresThrowable()
If the layout handles the throwable object contained within LoggingEvent , then the layout should return
false . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.log4j.spi.OptionHandler |
activateOptions |
Field Detail |
public static final String LINE_SEP
public static final int LINE_SEP_LEN
Constructor Detail |
public Layout()
Method Detail |
public abstract String format(LoggingEvent event)
public String getContentType()
public String getHeader()
null
.
public String getFooter()
null
.
public abstract boolean ignoresThrowable()
LoggingEvent
, then the layout should return
false
. Otherwise, if the layout ignores throwable
object, then the layout should return true
.
The SimpleLayout
, TTCCLayout
, PatternLayout
all return true
. The XMLLayout
returns false
.
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.