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
FieldsModifier and TypeFieldDescriptionprotected longprotected CssBuilderprotected Stringprotected StringFields 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 StringReturns the content type output by this layout, i.e "text/html".protected abstract Map<String, Supplier<DynamicConverter>> 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.voidsetCssBuilder(CssBuilder cssBuilder) voidsetPattern(String conversionPattern) Set the ConversionPattern option.voidThe Title option takes a String value.voidstart()Parses the pattern and creates the Converter linked list.protected voidMethods 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, getStatusManagerMethods 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
-
getDefaultConverterSupplierMap
-
getEffectiveConverterMap
Returns a map where the default converter map is merged with the map contained in the context. -
setTitle
-
getTitle
-
getContentType
Returns the content type output by this layout, i.e "text/html".- Specified by:
getContentTypein interfaceLayout<E>- Overrides:
getContentTypein classLayoutBase<E>- Returns:
-
getFileHeader
Returns appropriate HTML headers.- Specified by:
getFileHeaderin interfaceLayout<E>- Overrides:
getFileHeaderin classLayoutBase<E>- Returns:
- The header.
-
getPresentationHeader
Description copied from interface:LayoutReturn the header of the logging event formatting. The returned value may be null.- Specified by:
getPresentationHeaderin interfaceLayout<E>- Overrides:
getPresentationHeaderin classLayoutBase<E>- Returns:
- The header.
-
startNewTableIfLimitReached
-
computeConverterName
-