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

ExtendedThrowablePatternConverter does not print suppressed exceptions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-rc1
    • Fix Version/s: 2.4
    • Component/s: Core
    • Labels:
      None
    • Environment:

      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

            • Assignee:
              garydgregory Gary Gregory
              Reporter:
              huxi Joern Huxhorn
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: