Configure JUL/log4j for JUnit 5 in spring-test

Issue: SPR-14431
This commit is contained in:
Sam Brannen
2016-07-13 22:06:46 +02:00
parent 833deadddc
commit adfea826cc
3 changed files with 15 additions and 0 deletions

View File

@@ -31,6 +31,16 @@ import org.junit.runner.RunWith;
* build. This class is therefore responsible for executing all JUnit
* Jupiter based tests in Spring's official test suite.
*
* <h3>Logging Configuration</h3>
*
* <p>In order for our log4j2 configuration to be used in an IDE, you must
* set the following system property before running any tests &mdash; for
* example, in <em>Run Configurations</em> in Eclipse.
*
* <pre style="code">
* -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
* </pre>
*
* @author Sam Brannen
* @since 5.0
*/