Class LiteralPatternConverter

    • Constructor Detail

      • LiteralPatternConverter

        public LiteralPatternConverter​(String literal)
        Create a new instance.
        Parameters:
        literal - string literal.
    • Method Detail

      • format

        public void format​(LoggingEvent event,
                           StringBuffer toAppendTo)
        Formats an event into a string buffer.
        Specified by:
        format in class LoggingEventPatternConverter
        Parameters:
        event - event to format, may not be null.
        toAppendTo - string buffer to which the formatted event will be appended. May not be null.
      • format

        public void format​(Object obj,
                           StringBuffer toAppendTo)
        Formats an object into a string buffer.
        Overrides:
        format in class LoggingEventPatternConverter
        Parameters:
        obj - event to format, may not be null.
        toAppendTo - string buffer to which the formatted event will be appended. May not be null.