Package org.apache.log4j
Class SimpleLayout
java.lang.Object
org.apache.log4j.Layout
org.apache.log4j.SimpleLayout
Simple-layout.
-
Field Summary
Fields inherited from class org.apache.log4j.Layout
LINE_SEP, LINE_SEP_LEN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(LoggingEvent theEvent) Implement this method to create your own layout format.booleanIf the layout handles the throwable object contained withinLoggingEvent, then the layout should returnfalse.Methods inherited from class org.apache.log4j.Layout
getContentType, getFooter, getHeader
-
Constructor Details
-
SimpleLayout
public SimpleLayout()
-
-
Method Details
-
format
Implement this method to create your own layout format. -
ignoresThrowable
public boolean ignoresThrowable()If the layout handles the throwable object contained withinLoggingEvent, then the layout should returnfalse. Otherwise, if the layout ignores throwable object, then the layout should returntrue. If ignoresThrowable is true, the appender is responsible for rendering the throwable.The SimpleLayout, TTCCLayout, PatternLayout all return
true. The XMLLayout returnsfalse.- Specified by:
ignoresThrowablein classLayout- Returns:
- true if the Layout ignores Throwables.
-