org.apache.log4j
Class SimpleLayout
- OptionHandler
public class SimpleLayout
SimpleLayout consists of the level of the log statement,
followed by " - " and then the log message itself. For example,
DEBUG - Hello world
- version 0.7.0
PatternLayout
offers a much more powerful alternative.
SimpleLayout
public SimpleLayout()
format
public String format(LoggingEvent event)
Returns the log statement in a format consisting of the
level
, followed by " - " and then the
message
. For example,
INFO - "A message"
The
category
parameter is ignored.
- format in interface Layout
- A byte array in SimpleLayout format.
ignoresThrowable
public boolean ignoresThrowable()
The SimpleLayout does not handle the throwable contained within
LoggingEvents
. Thus, it returns
true
.
- ignoresThrowable in interface Layout
Copyright 2000-2005 Apache Software Foundation.