public class LayoutWrapper extends Layout
| Modifier and Type | Field and Description |
|---|---|
private Layout<?> |
layout |
LINE_SEP, LINE_SEP_LEN| Constructor and Description |
|---|
LayoutWrapper(Layout<?> layout) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(LoggingEvent event)
Implement this method to create your own layout format.
|
Layout<?> |
getLayout() |
boolean |
ignoresThrowable()
If the layout handles the throwable object contained within
LoggingEvent, then the layout should return
false. |
getContentType, getFooter, getHeaderprivate final Layout<?> layout
public LayoutWrapper(Layout<?> layout)
public java.lang.String format(LoggingEvent event)
Layoutpublic boolean ignoresThrowable()
LayoutLoggingEvent, 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.
ignoresThrowable in class Layoutpublic Layout<?> getLayout()