Class ThrowablePatternConverter

    • Constructor Detail

      • ThrowablePatternConverter

        @Deprecated
        protected ThrowablePatternConverter​(String name,
                                            String style,
                                            @Nullable String[] options)
        Deprecated.
        Use ThrowablePatternConverter(String, String, String[], Configuration, ThrowablePropertyRendererFactory, ThrowableStackTraceRendererFactory) instead.
      • ThrowablePatternConverter

        @Deprecated
        protected ThrowablePatternConverter​(String name,
                                            String style,
                                            @Nullable String[] options,
                                            @Nullable Configuration config)
        Deprecated.
        Use ThrowablePatternConverter(String, String, String[], Configuration, ThrowablePropertyRendererFactory, ThrowableStackTraceRendererFactory) instead.
    • Method Detail

      • newInstance

        public static ThrowablePatternConverter newInstance​(@Nullable Configuration config,
                                                            @Nullable String[] options)
        Creates an instance of the class.
        Parameters:
        config - a configuration
        options - the pattern options
        Returns:
        a new instance
      • format

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

        @Deprecated
        protected String getSuffix​(LogEvent logEvent)
        Deprecated.
        Planned to be removed without a replacement
        Returns the formatted suffix pattern.
        Parameters:
        logEvent - the log event to use while formatting the suffix pattern
        Returns:
        the formatted suffix