java.lang.Object | |
↳ | org.apache.log4j.Layout |
Known Direct Subclasses |
Known Indirect Subclasses |
Extend this abstract class to create your own log layout format.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LINE_SEP | |||||||||||
LINE_SEP_LEN |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Implement this method to create your own layout format.
| |||||||||||
Returns the content type output by this layout.
| |||||||||||
Returns the footer for the layout format.
| |||||||||||
Returns the header for the layout format.
| |||||||||||
If the layout handles the throwable object contained within
LoggingEvent , then the layout should return
false . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.log4j.spi.OptionHandler
|
Implement this method to create your own layout format.
Returns the content type output by this layout. The base class returns "text/plain".
Returns the footer for the layout format. The base class returns
null
.
Returns the header for the layout format. The base class returns
null
.
If the layout handles the throwable object contained within
LoggingEvent
, then the layout should return
false
. Otherwise, if the layout ignores throwable
object, then the layout should return true
.
If ignoresThrowable is true, the appender is responsible for
rendering the throwable.
The SimpleLayout
, TTCCLayout
, PatternLayout
all return true
. The XMLLayout
returns false
.