Remko Popma created LOG4J2-1291:
-----------------------------------

             Summary: Update PatternLayout to utilize gc-free mechanism for 
LogEvent processing
                 Key: LOG4J2-1291
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1291
             Project: Log4j 2
          Issue Type: Improvement
          Components: Core, Layouts, Pattern Converters
    Affects Versions: 2.5
            Reporter: Remko Popma
            Assignee: Remko Popma


LOG4J2-1274 added the {{encode(LogEvent, ByteBufferDestination)}} method to 
Layout. The default implementation in AbstractLayout calls the existing 
{{toByteArray}} logic and writes the result into the ByteBuffer, so all layouts 
work as before even when the new method is called.

This ticket is to modify PatternLayout to utilize the {{TextEncoderHelper}} 
class to avoid creating temporary objects when the {{encode}} method is called.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to