You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Volkan Yazici (Jira)" <ji...@apache.org> on 2021/04/14 09:20:00 UTC
[jira] [Updated] (LOG4J2-3070) ensure
EncodingPatternConverter#handlesThrowable is implemented
[ https://issues.apache.org/jira/browse/LOG4J2-3070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Volkan Yazici updated LOG4J2-3070:
----------------------------------
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|https://github.com/apache/logging-log4j2/pull/473] implements this method by checking the nested formatters.
was:
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.
> ensure EncodingPatternConverter#handlesThrowable is implemented
> ---------------------------------------------------------------
>
> Key: LOG4J2-3070
> URL: https://issues.apache.org/jira/browse/LOG4J2-3070
> Project: Log4j 2
> Issue Type: Bug
> Components: Pattern Converters
> Reporter: Romain Manni-Bucau
> Assignee: Volkan Yazici
> Priority: Minor
> Fix For: 3.0.0, 2.15.0
>
>
> 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|https://github.com/apache/logging-log4j2/pull/473] implements this method by checking the nested formatters.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)