

Public Member Functions | |
| virtual void | format (ostream &output, const spi::LoggingEventPtr &event) const =0 |
| virtual String | getContentType () const |
| virtual void | appendHeader (ostream &output) |
| virtual void | appendFooter (ostream &output) |
| virtual bool | ignoresThrowable () const =0 |
| virtual void format | ( | ostream & | output, | |
| const spi::LoggingEventPtr & | event | |||
| ) | const [pure virtual] |
Implement this method to create your own layout format.
Implemented in HTMLLayout, PatternLayout, SimpleLayout, TTCCLayout, and XMLLayout.
| virtual String getContentType | ( | ) | const [inline, virtual] |
Returns the content type output by this layout. The base class returns "text/plain".
Reimplemented in HTMLLayout.
| virtual void appendHeader | ( | ostream & | output | ) | [inline, virtual] |
Append the header for the layout format. The base class does nothing.
Reimplemented in HTMLLayout.
| virtual void appendFooter | ( | ostream & | output | ) | [inline, virtual] |
Append the footer for the layout format. The base class does nothing.
Reimplemented in HTMLLayout.
| virtual bool ignoresThrowable | ( | ) | const [pure virtual] |
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.
The SimpleLayout, TTCCLayout, PatternLayout all return true. The XMLLayout returns false.
Implemented in HTMLLayout, PatternLayout, SimpleLayout, TTCCLayout, and XMLLayout.
1.5.5