Package ch.qos.logback.classic.html
Class HTMLLayout
- All Implemented Interfaces:
Layout<ILoggingEvent>,ContextAware,LifeCycle
HTMLLayout outputs events in an HTML table.
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
- Author:
- Ceki Gülcü, Sébastien Pennec
-
Field Summary
Fields inherited from class ch.qos.logback.core.html.HTMLLayoutBase
counter, cssBuilder, head, pattern, titleFields inherited from class ch.qos.logback.core.LayoutBase
startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoLayout(ILoggingEvent event) voidsetThrowableRenderer(IThrowableRenderer<ILoggingEvent> throwableRenderer) voidstart()Methods inherited from class ch.qos.logback.core.html.HTMLLayoutBase
getContentType, getCssBuilder, getEffectiveConverterMap, getFileFooter, getFileHeader, getPattern, getPresentationFooter, getPresentationHeader, getTitle, setCssBuilder, setPattern, setTitle, startNewTableIfLimitReachedMethods inherited from class ch.qos.logback.core.LayoutBase
getContext, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stopMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManager
-
Constructor Details
-
HTMLLayout
public HTMLLayout()Constructs a PatternLayout using the DEFAULT_LAYOUT_PATTERN. The default pattern just produces the application supplied message.
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceLifeCycle- Overrides:
startin classHTMLLayoutBase<ILoggingEvent>
-
getDefaultConverterMap
- Specified by:
getDefaultConverterMapin classHTMLLayoutBase<ILoggingEvent>
-
doLayout
-
getThrowableRenderer
-
setThrowableRenderer
-
computeConverterName
- Overrides:
computeConverterNamein classHTMLLayoutBase<ILoggingEvent>
-