List of usage examples for org.springframework.boot.logging LogLevel ERROR
LogLevel ERROR
To view the source code for org.springframework.boot.logging LogLevel ERROR.
Click Source Link
From source file:org.springframework.boot.context.initializer.LoggingApplicationContextInitializerTests.java
@Test public void parseArgsDoesntReplace() throws Exception { this.initializer.setSpringBootLogging(LogLevel.ERROR); this.initializer.setParseArgs(false); this.initializer.initialize(this.springApplication, new String[] { "--debug" }); this.initializer.initialize(this.context); this.logger.debug("testatdebug"); assertThat(this.outputCapture.toString(), not(containsString("testatdebug"))); }
From source file:org.springframework.boot.context.listener.LoggingApplicationListenerTests.java
@Test public void parseArgsDoesntReplace() throws Exception { this.initializer.setSpringBootLogging(LogLevel.ERROR); this.initializer.setParseArgs(false); this.initializer.onApplicationEvent( new SpringApplicationStartEvent(this.springApplication, new String[] { "--debug" })); this.initializer.initialize(this.context.getEnvironment(), this.context.getClassLoader()); this.logger.debug("testatdebug"); assertThat(this.outputCapture.toString(), not(containsString("testatdebug"))); }
From source file:org.springframework.boot.context.logging.LoggingApplicationListenerTests.java
@Test public void parseArgsDoesntReplace() { this.initializer.setSpringBootLogging(LogLevel.ERROR); this.initializer.setParseArgs(false); multicastEvent(new ApplicationStartingEvent(this.springApplication, new String[] { "--debug" })); this.initializer.initialize(this.context.getEnvironment(), this.context.getClassLoader()); this.logger.debug("testatdebug"); assertThat(this.outputCapture.toString()).doesNotContain("testatdebug"); }
From source file:org.springframework.boot.logging.DeferredLog.java
@Override public void error(Object message) { log(LogLevel.ERROR, message, null); }
From source file:org.springframework.boot.logging.DeferredLog.java
@Override public void error(Object message, Throwable t) { log(LogLevel.ERROR, message, t); }
From source file:org.springframework.boot.logging.LoggingApplicationListenerTests.java
@Test public void parseArgsDoesntReplace() throws Exception { this.initializer.setSpringBootLogging(LogLevel.ERROR); this.initializer.setParseArgs(false); this.initializer.onApplicationEvent( new ApplicationStartedEvent(this.springApplication, new String[] { "--debug" })); this.initializer.initialize(this.context.getEnvironment(), this.context.getClassLoader()); this.logger.debug("testatdebug"); assertThat(this.outputCapture.toString(), not(containsString("testatdebug"))); }