Inherited by DateLayout, HTMLLayout, PatternLayout, SimpleLayout, and XMLLayout.
Public Member Functions | |
virtual | ~Layout () |
void | addRef () const |
void | releaseRef () const |
virtual void | format (LogString &output, const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &pool) const =0 |
Implement this method to create your own layout format. | |
virtual LogString | getContentType () const |
Returns the content type output by this layout. | |
virtual void | appendHeader (LogString &output, log4cxx::helpers::Pool &p) |
Append the header for the layout format. | |
virtual void | appendFooter (LogString &output, log4cxx::helpers::Pool &p) |
Append the footer for the layout format. | |
virtual bool | ignoresThrowable () const =0 |
If the layout handles the throwable object contained within LoggingEvent, then the layout should return false . |
|
|
|
Reimplemented from ObjectImpl. |
|
Append the footer for the layout format. The base class does nothing. Reimplemented in HTMLLayout. |
|
Append the header for the layout format. The base class does nothing. Reimplemented in HTMLLayout. |
|
Implement this method to create your own layout format.
Implemented in HTMLLayout, PatternLayout, SimpleLayout, TTCCLayout, and XMLLayout. |
|
Returns the content type output by this layout. The base class returns "text/plain". Reimplemented in HTMLLayout. |
|
If the layout handles the throwable object contained within LoggingEvent, then the layout should return
Otherwise, if the layout ignores throwable object, then the layout should return
The SimpleLayout, TTCCLayout, PatternLayout all return Implemented in HTMLLayout, PatternLayout, SimpleLayout, TTCCLayout, and XMLLayout. |
|
Reimplemented from ObjectImpl. |