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] [Commented] (LOG4J2-1343) Update ConsoleAppender to utilize gc-free Layout method
Date Tue, 05 Apr 2016 16:07:25 GMT

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

Remko Popma commented on LOG4J2-1343:
-------------------------------------

I tried a slightly different approach on branch LOG4J2-1343-no-gc-outputstreamappenders: wrapping
the OutputStream so that the Layout.encode(LogEvent, ByteBufferDestination) writes into that
wrapper (which flushes to the wrapped stream).

This is an improvement and all tests pass but it bypasses the Manager.write() method so it
may break custom Appenders that depend on the Manager.write() method being called.

I will take another stab at this...

> Update ConsoleAppender to utilize gc-free Layout method
> -------------------------------------------------------
>
>                 Key: LOG4J2-1343
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1343
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Appenders
>    Affects Versions: 2.5
>            Reporter: Remko Popma
>            Assignee: Remko Popma
>
> TBD: would we want to include this in the upcoming 2.6 release?



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