org.apache.log4j
public class SimpleLayout extends Layout
DEBUG - Hello world
Since: version 0.7.0
PatternLayout offers a much more powerful alternative.
| Constructor Summary | |
|---|---|
| SimpleLayout() | |
| Method Summary | |
|---|---|
| void | activateOptions() |
| 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. |
level, followed by " - " and then the
message. For example, INFO - "A message"
The category parameter is ignored.
Returns: A byte array in SimpleLayout format.
LoggingEvents. Thus, it returns
true.Since: version 0.8.4