Log4j 2
  1. Log4j 2
  2. LOG4J2-128

How do I set ConsoleAppender.setFollow(true) ?

    Details

    • Type: Question Question
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta3
    • Fix Version/s: 2.0-beta4
    • Component/s: Appenders
    • Labels:
      None

      Description

      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.

        Activity

        Armin Heinzer made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Armin Heinzer made changes -
        Affects Version/s 2.0-beta2 [ 12323283 ]
        Armin Heinzer made changes -
        Affects Version/s 2.0-beta3 [ 12323368 ]
        Ralph Goers made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Ralph Goers [ ralph.goers@dslextreme.com ]
        Fix Version/s 2.0-beta4 [ 12323477 ]
        Resolution Fixed [ 1 ]
        Armin Heinzer created issue -

          People

          • Assignee:
            Ralph Goers
            Reporter:
            Armin Heinzer
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development