java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.LayoutBase<IAccessEvent>
ch.qos.logback.core.html.HTMLLayoutBase<IAccessEvent>
ch.qos.logback.access.common.html.HTMLLayout
All Implemented Interfaces:
ch.qos.logback.core.Layout<IAccessEvent>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.LifeCycle

public class HTMLLayout extends ch.qos.logback.core.html.HTMLLayoutBase<IAccessEvent>
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#AccessHTMLLayout

Author:
Ceki Gülcü, Sébastien Pennec
  • Field Summary

    Fields inherited from class ch.qos.logback.core.html.HTMLLayoutBase

    counter, cssBuilder, head, pattern, title

    Fields inherited from class ch.qos.logback.core.LayoutBase

    started

    Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

    context
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a PatternLayout using the DEFAULT_LAYOUT_PATTERN.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected Map<String,Supplier<ch.qos.logback.core.pattern.DynamicConverter>>
     

    Methods inherited from class ch.qos.logback.core.html.HTMLLayoutBase

    computeConverterName, getContentType, getCssBuilder, getEffectiveConverterMap, getFileFooter, getFileHeader, getPattern, getPresentationFooter, getPresentationHeader, getTitle, setCssBuilder, setPattern, setTitle, start, startNewTableIfLimitReached

    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

    Methods inherited from interface ch.qos.logback.core.spi.ContextAware

    addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn
  • Constructor Details

    • HTMLLayout

      public HTMLLayout()
      Constructs a PatternLayout using the DEFAULT_LAYOUT_PATTERN.
  • Method Details

    • getDefaultConverterSupplierMap

      protected Map<String,Supplier<ch.qos.logback.core.pattern.DynamicConverter>> getDefaultConverterSupplierMap()
      Specified by:
      getDefaultConverterSupplierMap in class ch.qos.logback.core.html.HTMLLayoutBase<IAccessEvent>
    • doLayout

      public String doLayout(IAccessEvent event)