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
        Tests whether this pattern converter is renders a Throwable.

        The PatternParser checks this flag when processing the alwaysWriteExceptions option: if no converter in the pattern handles throwables, the parser automatically appends a converter to ensure exceptions are still written.

        Overrides:
        handlesThrowable in class LogEventPatternConverter
        Returns:
        true if this converter consumes and renders a Throwable, false otherwise