|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.Layout
org.apache.log4j.SimpleLayout
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
PatternLayout
offers a much more powerful alternative.
Field Summary |
---|
Fields inherited from class org.apache.log4j.Layout |
---|
LINE_SEP, LINE_SEP_LEN |
Constructor Summary | |
---|---|
SimpleLayout()
|
Method Summary | |
---|---|
void |
activateOptions()
|
java.lang.String |
format(org.apache.log4j.spi.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 . |
Methods inherited from class org.apache.log4j.Layout |
---|
getContentType, getFooter, getHeader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleLayout()
Method Detail |
---|
public void activateOptions()
public java.lang.String format(org.apache.log4j.spi.LoggingEvent event)
level
, followed by " - " and then the
message
. For example, INFO - "A message"
The category
parameter is ignored.
format
in class Layout
public boolean ignoresThrowable()
LoggingEvents
. Thus, it returns
true
.
ignoresThrowable
in class Layout
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |