|
|
@ -210,6 +210,18 @@ public class LoggingApplicationListenerTests {
|
|
|
|
assertThat(this.outputCapture.toString(), containsString("testattrace"));
|
|
|
|
assertThat(this.outputCapture.toString(), containsString("testattrace"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
|
|
|
public void parseLevelsCaseInsensitive() throws Exception {
|
|
|
|
|
|
|
|
EnvironmentTestUtils.addEnvironment(this.context,
|
|
|
|
|
|
|
|
"logging.level.org.springframework.boot=TrAcE");
|
|
|
|
|
|
|
|
this.initializer.initialize(this.context.getEnvironment(),
|
|
|
|
|
|
|
|
this.context.getClassLoader());
|
|
|
|
|
|
|
|
this.logger.debug("testatdebug");
|
|
|
|
|
|
|
|
this.logger.trace("testattrace");
|
|
|
|
|
|
|
|
assertThat(this.outputCapture.toString(), containsString("testatdebug"));
|
|
|
|
|
|
|
|
assertThat(this.outputCapture.toString(), containsString("testattrace"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void parseLevelsWithPlaceholder() throws Exception {
|
|
|
|
public void parseLevelsWithPlaceholder() throws Exception {
|
|
|
|
EnvironmentTestUtils.addEnvironment(this.context, "foo=TRACE",
|
|
|
|
EnvironmentTestUtils.addEnvironment(this.context, "foo=TRACE",
|
|
|
|