logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remko Popma (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (LOG4J2-1356) Update GelfLayout to utilize gc-free mechanism for LogEvent processing
Date Sun, 10 Apr 2016 08:45:25 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15233993#comment-15233993
] 

Remko Popma edited comment on LOG4J2-1356 at 4/10/16 8:44 AM:
--------------------------------------------------------------

Sorry I was unclear. Layouts should provide both mechanisms: {{encode(...)}} and {{toSerializable()}}.
PatterLayout does this and is okay as is. 

Appenders should control which mechanism is used based on the value of Constants.ENABLE_DIRECT_ENCODERS.
See AbstractOutputStreamAppender.addEvent for what I mean. 


was (Author: remkop@yahoo.com):
Sorry I was unclear. Layouts should provide both mechanisms: {{encode(...)}} and {{toSerializable()}}.


Appenders should control which mechanism is used based on the value of Constants.ENABLE_DIRECT_ENCODERS.


> Update GelfLayout to utilize gc-free mechanism for LogEvent processing 
> -----------------------------------------------------------------------
>
>                 Key: LOG4J2-1356
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1356
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Layouts
>    Affects Versions: 2.5
>            Reporter: Mikael Ståldal
>            Assignee: Mikael Ståldal
>              Labels: gc, performance
>
> GelfLayout should support gc-free logging when used with compressionType=OFF.



--
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


Mime
View raw message