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
- relates to
-
LOG4J2-1326 API change: add methods for logging CharSequences (was: Provide support for CharSequence parameters for low and zero-GC applications)
-
- Resolved
-