public abstract class Layout
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
LINE_SEP_LEN
Note that the line.separator property can be looked up even by applets.
|
| Constructor and Description |
|---|
Layout() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
format(LoggingEvent event)
Implement this method to create your own layout format.
|
java.lang.String |
getContentType()
Returns the content type output by this layout.
|
java.lang.String |
getFooter()
Returns the footer for the layout format.
|
java.lang.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. |
public static final int LINE_SEP_LEN
public abstract java.lang.String format(LoggingEvent event)
event - The LoggingEvent.public java.lang.String getContentType()
public java.lang.String getHeader()
null.public java.lang.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.
If ignoresThrowable is true, the appender is responsible for
rendering the throwable.
The SimpleLayout,
TTCCLayout,
PatternLayout
all return true. The
XMLLayout
returns false.