org.apache.log4j
public abstract class Layout extends Object implements OptionHandler
Field Summary | |
---|---|
static String | LINE_SEP |
static int | LINE_SEP_LEN |
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 . |
null
.null
.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
.
Since: 0.8.4