[ 
https://issues.apache.org/jira/browse/LOG4J2-1291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Remko Popma resolved LOG4J2-1291.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.6

Fixed in master in commit daf2c93.

> 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
>             Fix For: 2.6
>
>
> 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