We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FileOutputTest
1 parent 7d45989 commit ce3a6deCopy full SHA for ce3a6de
log4j-core-test/src/test/java/org/apache/logging/log4j/core/config/FileOutputTest.java
@@ -20,6 +20,7 @@
20
import java.nio.file.Path;
21
22
import org.apache.logging.log4j.core.test.junit.LoggerContextSource;
23
+import org.apache.logging.log4j.status.StatusLogger;
24
import org.apache.logging.log4j.test.junit.TempLoggingDir;
25
import org.junit.jupiter.api.Test;
26
@@ -38,6 +39,8 @@ public class FileOutputTest {
38
39
public void testConfig() throws IOException {
40
final Path logFile = loggingPath.resolve("status.log");
41
assertThat(logFile).exists().isNotEmptyFile();
42
+ // Closes the current listeners
43
+ StatusLogger.getLogger().reset();
44
}
45
46
0 commit comments