logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Goers (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-128) How do I set ConsoleAppender.setFollow(true) ?
Date Sun, 02 Dec 2012 15:55:58 GMT

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

Ralph Goers commented on LOG4J2-128:
------------------------------------

Most Appenders use a Manager to avoid having multiple output streams trying to access the
same file, etc. In your case you don't really need to know about that. If you run your test
against the code in trunk it should be working now.
                
> How do I set ConsoleAppender.setFollow(true) ?
> ----------------------------------------------
>
>                 Key: LOG4J2-128
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-128
>             Project: Log4j 2
>          Issue Type: Question
>          Components: Appenders
>    Affects Versions: 2.0-beta3
>            Reporter: Armin Heinzer
>            Assignee: Ralph Goers
>             Fix For: 2.0-beta4
>
>
> I need to reassign System.out and System.err after Log4j2 is configured.
> Log4j 1.2 supports ConsoleAppender.setFollow(true).
> If set, the appender honors reassignments of System.out or System.err made after configuration.
> How do I set this within Log4j2 ?
> Now, Log4j2 is still logging to Console even if I reassigned System.out and System.err
before.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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