You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2016/02/21 17:05:18 UTC
[jira] [Closed] (LOG4J2-1291) Update PatternLayout to utilize
gc-free mechanism for LogEvent processing
[ https://issues.apache.org/jira/browse/LOG4J2-1291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Remko Popma closed LOG4J2-1291.
-------------------------------
> 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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org