mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge branch '2.7.x' into 3.0.x
Closes gh-36858
This commit is contained in:
commit
b411fffb30
@ -56,6 +56,30 @@ import org.junit.jupiter.api.extension.ParameterResolver;
|
||||
* }
|
||||
*
|
||||
* }
|
||||
* </pre>
|
||||
* <p>
|
||||
* To ensure that their output can be captured, Java Util Logging (JUL) and Log4j2 require
|
||||
* additional configuration.
|
||||
* <p>
|
||||
* To reliably capture output from Java Util Logging, reset its configuration after each
|
||||
* test:
|
||||
*
|
||||
* <pre class="code">
|
||||
* @AfterEach
|
||||
* void reset() throws Exception {
|
||||
* LogManager.getLogManager().readConfiguration();
|
||||
* }
|
||||
* </pre>
|
||||
* <p>
|
||||
* To reliably capture output from Log4j2, set the <code>follow</code> attribute of the
|
||||
* console appender to <code>true</code>:
|
||||
*
|
||||
* <pre class="code">
|
||||
* <Appenders>
|
||||
* <Console name="Console" target="SYSTEM_OUT" follow="true">
|
||||
* ...
|
||||
* </Console>
|
||||
* </Appenders>
|
||||
* </pre>
|
||||
*
|
||||
* @author Madhura Bhave
|
||||
|
Loading…
Reference in New Issue
Block a user