List of usage examples for org.springframework.boot.logging LogLevel DEBUG
LogLevel DEBUG
To view the source code for org.springframework.boot.logging LogLevel DEBUG.
Click Source Link
From source file:org.springframework.boot.logging.logback.LogbackLoggingSystemTests.java
@Test public void loggingLevelIsPropagatedToJulI() { this.loggingSystem.beforeInitialize(); this.loggingSystem.initialize(this.initializationContext, null, null); this.loggingSystem.setLogLevel(getClass().getName(), LogLevel.DEBUG); java.util.logging.Logger julLogger = java.util.logging.Logger.getLogger(getClass().getName()); julLogger.fine("Hello debug world"); String output = this.output.toString().trim(); assertTrue("Wrong output:\n" + output, output.contains("Hello debug world")); }
From source file:org.springframework.boot.logging.LoggingApplicationListener.java
private void initializeEarlyLoggingLevel(ConfigurableEnvironment environment) { if (this.parseArgs && this.springBootLogging == null) { if (environment.containsProperty("debug")) { this.springBootLogging = LogLevel.DEBUG; }//from w ww . j a v a2 s .c o m if (environment.containsProperty("trace")) { this.springBootLogging = LogLevel.TRACE; } } }