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

API change: let Message.getFormattedMessage() return CharSequence instead of String

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.5
    • None
    • API
    • None

    Description

      I propose that we change Message.getFormattedMessage() to return a CharSequence instead of a String.

      I believe this change would be backwards compatible (all Message implementations that return a String will work as is), and it opens the way
      for zero-GC Message implementations to return a cached StringBuilder as Mikael suggested on the log4j-dev mailing list.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rpopma Remko Popma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: