public class LayoutWrapper extends Layout
LINE_SEP, LINE_SEP_LEN
Constructor and Description |
---|
LayoutWrapper(org.apache.logging.log4j.core.Layout<?> layout) |
Modifier and Type | Method and Description |
---|---|
String |
format(LoggingEvent event)
Implement this method to create your own layout format.
|
org.apache.logging.log4j.core.Layout<?> |
getLayout() |
boolean |
ignoresThrowable()
If the layout handles the throwable object contained within
LoggingEvent , then the layout should return
false . |
getContentType, getFooter, getHeader
public LayoutWrapper(org.apache.logging.log4j.core.Layout<?> layout)
public String format(LoggingEvent event)
Layout
public boolean ignoresThrowable()
Layout
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
.
ignoresThrowable
in class Layout
public org.apache.logging.log4j.core.Layout<?> getLayout()
Copyright © 1999-1969 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.