Kirk Lund created GEODE-6159:
--------------------------------

             Summary: SystemOutRule does not play well with Log4j in tests that 
verify logging behavior
                 Key: GEODE-6159
                 URL: https://issues.apache.org/jira/browse/GEODE-6159
             Project: Geode
          Issue Type: Bug
          Components: logging, tests
            Reporter: Kirk Lund


We need to find a better solution that is simpler than having to specify a 
custom log4j2.xml with LoggerContextRule but works better than SystemOutRule.

The problem with using SystemOutRule to test output from a logger is that log4j 
captures System.out into its own static final reference. So tests like this 
must be run in their own forked JVM.

See GEODE-6158 for some background about the tests that do specify custom 
log4j2.xml config files.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to