logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikael Ståldal (JIRA) <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-1395) Add "direct" option to ConsoleAppender for increased performance
Date Sun, 03 Jul 2016 09:19:11 GMT

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

Mikael Ståldal commented on LOG4J2-1395:

There is something strange going on here. I tried your test project, and got the same result.
However, when I changed it to use a File appender instead of Console, I did not get any significant
speed-up either. There seems to be some bottleneck before the appender.

BTW, you should redirect standard out to a file when comparing direct="true" and direct="false".
(I did that, it made no difference here.)

BTW2, what StackOverflow post?

> Add "direct" option to ConsoleAppender for increased performance
> ----------------------------------------------------------------
>                 Key: LOG4J2-1395
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1395
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Appenders
>    Affects Versions: 2.5, 2.6, 2.6.1
>            Reporter: Mikael Ståldal
>            Assignee: Mikael Ståldal
>             Fix For: 2.6.2
>         Attachments: app.zip, ggregory-hardware.txt
> The ConsoleAppender is much slower than the FileAppender.
> It would be nice to improve the performance of the ConsoleAppender.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message