public abstract class Layout extends Object implements OptionHandler
Modifier and Type | Field and Description |
---|---|
static String |
LINE_SEP |
static int |
LINE_SEP_LEN |
Constructor and Description |
---|
Layout() |
Modifier and Type | Method and Description |
---|---|
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 . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activateOptions
public static final int LINE_SEP_LEN
public Layout()
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
.
If ignoresThrowable is true, the appender is responsible for
rendering the throwable.
The SimpleLayout
, TTCCLayout
, PatternLayout
all return true
. The XMLLayout
returns false
.
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses