You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCaptureExtension.java
+24
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,30 @@
56
56
* }
57
57
*
58
58
* }
59
+
* </pre>
60
+
* <p>
61
+
* To ensure that their output can be captured, Java Util Logging (JUL) and Log4j2 require
62
+
* additional configuration.
63
+
* <p>
64
+
* To reliably capture output from Java Util Logging, reset its configuration after each
65
+
* test:
66
+
*
67
+
* <pre class="code">
68
+
* @AfterEach
69
+
* void reset() throws Exception {
70
+
* LogManager.getLogManager().readConfiguration();
71
+
* }
72
+
* </pre>
73
+
* <p>
74
+
* To reliably capture output from Log4j2, set the <code>follow</code> attribute of the
0 commit comments