java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.LayoutBase<E>
ch.qos.logback.core.html.HTMLLayoutBase<E>
- All Implemented Interfaces:
Layout<E>
,ContextAware
,LifeCycle
- Direct Known Subclasses:
HTMLLayout
This class is a base class for HTMLLayout classes part of other logback
modules such as logback-classic and logback-access.
- Author:
- Sébastien Pennec
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
protected CssBuilder
protected String
protected String
Fields inherited from class ch.qos.logback.core.LayoutBase
started
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the content type output by this layout, i.e "text/html".Returns a map where the default converter map is merged with the map contained in the context.Returns the appropriate HTML footers.Returns appropriate HTML headers.Returns the value of the ConversionPattern option.Return the footer of the logging event formatting.Return the header of the logging event formatting.getTitle()
Returns the current value of the Title option.void
setCssBuilder
(CssBuilder cssBuilder) void
setPattern
(String conversionPattern) Set the ConversionPattern option.void
The Title option takes a String value.void
start()
Parses the pattern and creates the Converter linked list.protected void
Methods inherited from class ch.qos.logback.core.LayoutBase
getContext, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stop
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManager
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
pattern
-
head
-
title
-
cssBuilder
-
counter
-
-
Constructor Details
-
HTMLLayoutBase
public HTMLLayoutBase()
-
-
Method Details
-
setPattern
Set the ConversionPattern option. This is the string which controls formatting and consists of a mix of literal content and conversion specifiers. -
getPattern
Returns the value of the ConversionPattern option. -
getCssBuilder
-
setCssBuilder
-
start
Parses the pattern and creates the Converter linked list.- Specified by:
start
in interfaceLifeCycle
- Overrides:
start
in classLayoutBase<E>
-
getDefaultConverterMap
-
getEffectiveConverterMap
Returns a map where the default converter map is merged with the map contained in the context. -
setTitle
The Title option takes a String value. This option sets the document title of the generated HTML document.Defaults to 'Logback Log Messages'.
-
getTitle
Returns the current value of the Title option. -
getContentType
Returns the content type output by this layout, i.e "text/html".- Specified by:
getContentType
in interfaceLayout<E>
- Overrides:
getContentType
in classLayoutBase<E>
- Returns:
-
getFileHeader
Returns appropriate HTML headers.- Specified by:
getFileHeader
in interfaceLayout<E>
- Overrides:
getFileHeader
in classLayoutBase<E>
- Returns:
- The header.
-
getPresentationHeader
Description copied from interface:Layout
Return the header of the logging event formatting. The returned value may be null.- Specified by:
getPresentationHeader
in interfaceLayout<E>
- Overrides:
getPresentationHeader
in classLayoutBase<E>
- Returns:
- The header.
-
startNewTableIfLimitReached
-
computeConverterName
-