Class HTMLLayoutBase<E>

  • All Implemented Interfaces:
    Layout<E>, ContextAware, LifeCycle


    public abstract class HTMLLayoutBase<E>
    extends LayoutBase<E>
    This class is a base class for HTMLLayout classes part of other logback modules such as logback-classic and logback-access.
    • Constructor Detail

      • HTMLLayoutBase

        public HTMLLayoutBase()
    • Method Detail

      • setPattern

        public void setPattern(String conversionPattern)
        Set the ConversionPattern option. This is the string which controls formatting and consists of a mix of literal content and conversion specifiers.
      • getPattern

        public String getPattern()
        Returns the value of the ConversionPattern option.
      • getCssBuilder

        public CssBuilder getCssBuilder()
      • setCssBuilder

        public void setCssBuilder(CssBuilder cssBuilder)
      • start

        public void start()
        Parses the pattern and creates the Converter linked list.
      • getDefaultConverterMap

        protected abstract Map<String,String> getDefaultConverterMap()
      • getEffectiveConverterMap

        public Map<String,String> getEffectiveConverterMap()
        Returns a map where the default converter map is merged with the map contained in the context.
      • setTitle

        public void setTitle(String title)
        The Title option takes a String value. This option sets the document title of the generated HTML document.

        Defaults to 'Logback Log Messages'.

      • getTitle

        public String getTitle()
        Returns the current value of the Title option.
      • startNewTableIfLimitReached

        protected void startNewTableIfLimitReached(StringBuilder sbuf)
      • computeConverterName

        protected String computeConverterName(Converter c)