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

ensure EncodingPatternConverter#handlesThrowable is implemented

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0, 2.15.0
    • Pattern Converters
    • None

    Description

      Guess the title is enough to understand what happens .
      Long story short the handlesThrowable() logic to skip forced (by default) append of the exception does not work as soon as encoding is used which is almost always the case when outputing JSON/XML using PatternFormatter (since Json appender required 3rd party libs which are often undesired).
      This PR implements this method by checking the nested formatters.

      Attachments

        Issue Links

          Activity

            People

              vy Volkan Yazici
              romain.manni-bucau Romain Manni-Bucau
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: