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

ensure EncodingPatternConverter#handlesThrowable is implemented

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.15.0
    • Component/s: Pattern Converters
    • Labels:
      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

          Activity

            People

            • Assignee:
              vy Volkan Yazici
              Reporter:
              romain.manni-bucau Romain Manni-Bucau

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment