Class SimpleLiteralPatternConverter

    • Constructor Detail

      • SimpleLiteralPatternConverter

        private SimpleLiteralPatternConverter()
    • Method Detail

      • format

        public final void format​(LogEvent ignored,
                                 java.lang.StringBuilder output)
        Formats an event into a string buffer.
        Specified by:
        format in class LogEventPatternConverter
        Parameters:
        ignored - event to format, may not be null.
        output - string buffer to which the formatted event will be appended. May not be null.
      • format

        public final void format​(java.lang.Object ignored,
                                 java.lang.StringBuilder output)
        Formats an object into a string buffer.
        Specified by:
        format in interface PatternConverter
        Overrides:
        format in class LogEventPatternConverter
        Parameters:
        ignored - event to format, may not be null.
        output - string buffer to which the formatted event will be appended. May not be null.
      • format

        public final void format​(java.lang.StringBuilder output,
                                 java.lang.Object... args)
        Formats an array of Objects.
        Specified by:
        format in interface ArrayPatternConverter
        Parameters:
        output - The StringBuilder to add the content to.
        args - The Object array.
      • format

        abstract void format​(java.lang.StringBuilder output)
      • handlesThrowable

        public final boolean handlesThrowable()
        Description copied from class: LogEventPatternConverter
        Normally pattern converters are not meant to handle Exceptions although few pattern converters might.

        By examining the return values for this method, the containing layout will determine whether it handles throwables or not.

        Overrides:
        handlesThrowable in class LogEventPatternConverter
        Returns:
        true if this PatternConverter handles throwables