You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Carter Kozak (Jira)" <ji...@apache.org> on 2020/11/29 14:46:00 UTC

[jira] [Closed] (LOG4J2-2966) Investigate replacing String.valueOf() usages in JTL with ParameterizedMessage.deepToString()

     [ https://issues.apache.org/jira/browse/LOG4J2-2966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carter Kozak closed LOG4J2-2966.
--------------------------------
    Resolution: Fixed

The change looks good. Thanks, Volkan!

> Investigate replacing String.valueOf() usages in JTL with ParameterizedMessage.deepToString()
> ---------------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-2966
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2966
>             Project: Log4j 2
>          Issue Type: Improvement
>            Reporter: Carter Kozak
>            Assignee: Volkan Yazici
>            Priority: Major
>              Labels: JsonTemplateLayout
>             Fix For: 3.0.0, 2.14.1
>
>
> As shared by [~ckozak] in [a GitHub pull request conversation|https://github.com/apache/logging-log4j2/pull/441#discussion_r527706889]:
> {quote}... we might want to use something like `ParameterizedMessage.deepToString(value)` for better handling of standard types, and exception handling in the case `toString` throws.{quote}
> This story aims to investigate the possibility of replacing {{String.valueOf()}} usages in JTL with {{ParameterizedMessage.deepToString()}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)