Methods Summary |
---|
public abstract java.lang.String | format(org.apache.log4j.spi.LoggingEvent event)Implement this method to create your own layout format.
|
public java.lang.String | getContentType()Returns the content type output by this layout. The base class
returns "text/plain".
return "text/plain";
|
public java.lang.String | getFooter()Returns the footer for the layout format. The base class returns
null .
return null;
|
public java.lang.String | getHeader()Returns the header for the layout format. The base class returns
null .
return null;
|
public abstract boolean | ignoresThrowable()If the layout handles the throwable object contained within
{@link LoggingEvent}, then the layout should return
false . Otherwise, if the layout ignores throwable
object, then the layout should return true .
The {@link SimpleLayout}, {@link TTCCLayout}, {@link
PatternLayout} all return true . The {@link
org.apache.log4j.xml.XMLLayout} returns false .
|