Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-128

How do I set ConsoleAppender.setFollow(true) ?

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta3
    • 2.0-beta4
    • Appenders
    • 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.

      Attachments

        Activity

          People

            rgoers Ralph Goers
            armin.heinzer Armin Heinzer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: