|
|
|
@ -258,6 +258,18 @@ public class LoggingApplicationListenerTests { |
|
|
|
assertThat(this.outputCapture.toString(), not(containsString("testatfatal"))); |
|
|
|
assertThat(this.outputCapture.toString(), not(containsString("testatfatal"))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
|
|
public void parseLevelsMapsFalseToOff() throws Exception { |
|
|
|
|
|
|
|
EnvironmentTestUtils.addEnvironment(this.context, |
|
|
|
|
|
|
|
"logging.level.org.springframework.boot=false"); |
|
|
|
|
|
|
|
this.initializer.initialize(this.context.getEnvironment(), |
|
|
|
|
|
|
|
this.context.getClassLoader()); |
|
|
|
|
|
|
|
this.logger.debug("testatdebug"); |
|
|
|
|
|
|
|
this.logger.fatal("testatfatal"); |
|
|
|
|
|
|
|
assertThat(this.outputCapture.toString(), not(containsString("testatdebug"))); |
|
|
|
|
|
|
|
assertThat(this.outputCapture.toString(), not(containsString("testatfatal"))); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void parseArgsDisabled() throws Exception { |
|
|
|
public void parseArgsDisabled() throws Exception { |
|
|
|
this.initializer.setParseArgs(false); |
|
|
|
this.initializer.setParseArgs(false); |
|
|
|
|