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

API change: add methods for logging CharSequences (was: Provide support for CharSequence parameters for low and zero-GC applications)

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: API

      Description

      Currently, the preferred way of logging character sequences in log4j 2 is by passing in tokens of type java.lang.String. It would be very beneficial if the API could provide methods that take java.lang.CharSequence tokens. This would allow high performance zero or low-GC applications to re-use the existing mutable structures implementing java.lang.CharSequence for continuous logging without new objects being created.

      A high-performance implementation of the logger would be expected to copy out the contents of a single or multiple instances of java.lang.CharSequence so that they could be re-used in the subsequent logging call.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                remkop@yahoo.com Remko Popma
                Reporter:
                vlad.shurupov@algoteq.com Vlad Shurupov
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: