File tree 1 file changed +4
-1
lines changed
logback-classic/src/test/java/ch/qos/logback/classic/spi
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 13
13
14
14
import static org .junit .jupiter .api .Assertions .assertEquals ;
15
15
import static org .junit .jupiter .api .Assertions .assertTrue ;
16
+ import static org .slf4j .helpers .Reporter .SLF4J_INTERNAL_VERBOSITY_KEY ;
16
17
17
18
public class InvocationTest {
18
19
19
20
private final PrintStream oldErr = System .err ;
20
21
final String loggerName = this .getClass ().getName ();
21
22
StringPrintStream sps = new StringPrintStream (oldErr , true );
22
23
23
- String CONNECTED_WITH_MESSAGE = "SLF4J(I ): Connected with provider of type [ch.qos.logback.classic.spi.LogbackServiceProvider]" ;
24
+ String CONNECTED_WITH_MESSAGE = "SLF4J(D ): Connected with provider of type [ch.qos.logback.classic.spi.LogbackServiceProvider]" ;
24
25
25
26
@ BeforeEach
26
27
public void setUp () throws Exception {
28
+ System .setProperty (SLF4J_INTERNAL_VERBOSITY_KEY , "debug" );
27
29
System .setErr (sps );
28
30
}
29
31
30
32
@ AfterEach
31
33
public void tearDown () throws Exception {
32
34
LoggerFactoryFriend .reset ();
33
35
System .setErr (oldErr );
36
+ System .clearProperty (SLF4J_INTERNAL_VERBOSITY_KEY );
34
37
}
35
38
36
39
// https://jira.qos.ch/browse/LOGBACK-1568 would have been prevented
You can’t perform that action at this time.
0 commit comments