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

SimpleMessage - message duplication (String and CharSequence fields)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 2.12.1
    • Fix Version/s: None
    • Component/s: API
    • Labels:
      None

      Description

      org.apache.logging.log4j.message.SimpleMessage class contains 2 fields:

      private String message;
      private transient CharSequence charSequence; 

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                anikosss Dzmitry Anikechanka
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: