You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Dzmitry Anikechanka (Jira)" <ji...@apache.org> on 2019/11/21 14:42:00 UTC
[jira] [Closed] (LOG4J2-2724) SimpleMessage - message duplication
(String and CharSequence fields)
[ https://issues.apache.org/jira/browse/LOG4J2-2724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dzmitry Anikechanka closed LOG4J2-2724.
---------------------------------------
Resolution: Not A Bug
Closing as expected behavior, please see comment above
> SimpleMessage - message duplication (String and CharSequence fields)
> --------------------------------------------------------------------
>
> Key: LOG4J2-2724
> URL: https://issues.apache.org/jira/browse/LOG4J2-2724
> Project: Log4j 2
> Issue Type: Bug
> Components: API
> Affects Versions: 2.12.1
> Reporter: Dzmitry Anikechanka
> Priority: Minor
>
> org.apache.logging.log4j.message.SimpleMessage class contains 2 fields:
> {code:java}
> private String message;
> private transient CharSequence charSequence; {code}
> These 2 fields contains the message that should be logged.
> So as the result the message is duplicated and it can cause significant payload on memory in case of logging large messages.
> Could you please fix it or explain why the message is duplicated?
> Thanks,
> Dzmitry
--
This message was sent by Atlassian Jira
(v8.3.4#803005)