public class SimpleLayout extends Layout
DEBUG - Hello world
PatternLayout offers a much more powerful alternative.
LINE_SEP, LINE_SEP_LEN| Constructor and Description |
|---|
SimpleLayout() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateOptions()
Activate the options that were previously set with calls to option setters.
|
String |
format(LoggingEvent event)
Returns the log statement in a format consisting of the
level,
followed by " - " and then the message. |
boolean |
ignoresThrowable()
The SimpleLayout does not handle the throwable contained within
LoggingEvents. |
getContentType, getFooter, getHeaderpublic void activateOptions()
OptionHandlerThis allows to defer activiation of the options until all options have been set. This is required for components which have related options that remain ambigous until all are set.
For example, the FileAppender has the
File and
Append options both of which
are ambigous until the other is also set.
public String format(LoggingEvent event)
level,
followed by " - " and then the message. For example,
INFO - "A message"
The category parameter is ignored.
public boolean ignoresThrowable()
LoggingEvents. Thus, it returns true.ignoresThrowable in class LayoutCopyright © 1999–2022 QOS.CH Sarl (Switzerland). All rights reserved.