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
counter, cssBuilder, head, pattern, titlestartedcontext| Constructor and Description |
|---|
HTMLLayout()
Constructs a PatternLayout using the DEFAULT_LAYOUT_PATTERN.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
computeConverterName(Converter c) |
String |
doLayout(ILoggingEvent event)
Transform an event (of type Object) and return it as a String after
appropriate formatting.
|
protected Map<String,String> |
getDefaultConverterMap() |
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, startNewTableIfLimitReachedgetContext, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManagerpublic HTMLLayout()
public void start()
HTMLLayoutBasestart in interface LifeCyclestart in class HTMLLayoutBase<ILoggingEvent>protected Map<String,String> getDefaultConverterMap()
getDefaultConverterMap in class HTMLLayoutBase<ILoggingEvent>public String doLayout(ILoggingEvent event)
LayoutTaking 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)
protected String computeConverterName(Converter c)
computeConverterName in class HTMLLayoutBase<ILoggingEvent>Copyright © 2005–2014 QOS.ch. All rights reserved.