Layouts

Layouts are components responsible for transforming a logging event into a string.

More often than not, users wish to customize not only the output destination but also the output format. This is accomplished by associating a layout with an appender. All messages logged by that appender will use the given layout.

Layout reference

The following layout classes are available:

Name Description
LoggerLayoutHTML Outputs events in a HTML table.
LoggerLayoutPattern A flexible layout configurable via a pattern string.
LoggerLayoutSimple A simple, non configurable layout.
LoggerLayoutSerialized Outputs serialized objects.
LoggerLayoutTTCC Consists of Time, Thread, Category and nested diagnostic Context. DEPRECATED
LoggerLayoutXml Outputs events as an XML document.