Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-684

ExtendedThrowablePatternConverter does not print suppressed exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-rc1
    • 2.4
    • Core
    • None

    Description

      (Actual version was 2.0-rc2 but that wasn't available in the list.)

      Currently, any potentially available suppressed exceptions are ignored by ConsoleAppender.

      Instead, it should print those exceptions with the prefix "Suppressed: ". Be aware that suppressed exceptions are indented with a \t, recursively, in contrast to the way "Caused by: " is handled.

      See Throwable.printStackTrace of Java 7 or higher for the implementation.

      Feel free to use the code over at https://github.com/huxi/lilith/blob/master/lilith-data/logging/src/main/java/de/huxhorn/lilith/data/logging/ThrowableInfo.java if it helps.

      Attachments

        1. LOG4J2-684.zip
          69 kB
          Mauro Molinari

        Activity

          People

            ggregory Gary D. Gregory
            huxi Joern Huxhorn
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: