Class ThrowablePatternConverter

All Implemented Interfaces:
PatternConverter
Direct Known Subclasses:
ExtendedThrowablePatternConverter, RootThrowablePatternConverter

@Plugin(name="ThrowablePatternConverter", category="Converter") public class ThrowablePatternConverter extends LogEventPatternConverter
Outputs the Throwable portion of the LoggingEvent as a full stack trace unless this converter's option is 'short', where it just outputs the first line of the trace, or if the number of lines to print is explicitly specified.
  • Field Details

    • formatters

      protected final List<PatternFormatter> formatters
      Lists PatternFormatters for the suffix attribute.
    • rawOption

      private String rawOption
    • subShortOption

      private final boolean subShortOption
    • nonStandardLineSeparator

      private final boolean nonStandardLineSeparator
    • options

      protected final ThrowableFormatOptions options
      Options.
  • Constructor Details

    • ThrowablePatternConverter

      @Deprecated protected ThrowablePatternConverter(String name, String style, String[] options)
      Deprecated.
      Use ThrowablePatternConverter(String name, String stule, String[] options, Configuration config)
      Constructor.
      Parameters:
      name - Name of converter.
      style - CSS style for output.
      options - options, may be null.
    • ThrowablePatternConverter

      protected ThrowablePatternConverter(String name, String style, String[] options, Configuration config)
      Constructor.
      Parameters:
      name - Name of converter.
      style - CSS style for output.
      options - options, may be null.
      config -
  • Method Details