public class HTMLLayout extends HTMLLayoutBase<ILoggingEvent>
The content of the table
columns are specified using a conversion pattern. See
PatternLayout
for documentation on the
available patterns.
For more information about this layout, please refer to the online manual at http://logback.qos.ch/manual/layouts.html#ClassicHTMLLayout
Constructor and Description |
---|
HTMLLayout()
Constructs a PatternLayout using the DEFAULT_LAYOUT_PATTERN.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
doLayout(ILoggingEvent event)
Transform an event (of type Object) and return it as a String after
appropriate formatting.
|
IThrowableRenderer |
getThrowableRenderer() |
void |
setThrowableRenderer(IThrowableRenderer<ILoggingEvent> throwableRenderer) |
void |
start()
Parses the pattern and creates the Converter linked list.
|
getContentType, getCssBuilder, getEffectiveConverterMap, getFileFooter, getFileHeader, getPattern, getPresentationFooter, getPresentationHeader, getTitle, setCssBuilder, setPattern, setTitle
getContext, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getStatusManager
public HTMLLayout()
public void start()
HTMLLayoutBase
start
in interface LifeCycle
start
in class HTMLLayoutBase<ILoggingEvent>
public java.lang.String doLayout(ILoggingEvent event)
Layout
Taking in an object and returning a String is the least sophisticated way of formatting events. However, it is remarkably CPU-effective.
event
- The event to formatpublic IThrowableRenderer getThrowableRenderer()
public void setThrowableRenderer(IThrowableRenderer<ILoggingEvent> throwableRenderer)
Copyright © 2010 - 2020 Adobe. All Rights Reserved