You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Volkan Yazici (Jira)" <ji...@apache.org> on 2021/06/17 07:21:00 UTC

[jira] [Commented] (LOG4J2-3106) Add possibility to get console messages immediately

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

Volkan Yazici commented on LOG4J2-3106:
---------------------------------------

Judging from my 5 minute glance at the code... {{ConsoleAppender}} extends from {{AbstractOutputStreamAppender}} where its {{immediateFlush}} argument is set to {{true}} in {{ConsoleAppender}}. Hence, {{immediateFlush}} is always enabled for {{ConsoleAppender}}. Am I missing something?

> Add possibility to get console messages immediately
> ---------------------------------------------------
>
>                 Key: LOG4J2-3106
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3106
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Appenders
>            Reporter: Pavel_K
>            Priority: Major
>
> During debugging it is very important to get logging messages immediately. However, there seems to be not any solution to do it using log4j2. So, I suggest to add either immediateFlush or bufferSize for console appender.
> The issue was also discussed on [SO|https://stackoverflow.com/questions/68004937/is-it-possible-to-flush-log4j2-messages-to-console-immediately-while-debugging]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)