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

SimpleMessage - message duplication (String and CharSequence fields)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Bug
    • 2.12.1
    • None
    • API
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: