List of usage examples for org.springframework.boot.logging LogLevel INFO
LogLevel INFO
To view the source code for org.springframework.boot.logging LogLevel INFO.
Click Source Link
From source file:org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener.java
private boolean isInfoOrDebug(LogLevel logLevelForReport) { return LogLevel.INFO.equals(logLevelForReport) || LogLevel.DEBUG.equals(logLevelForReport); }
From source file:org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener.java
public void logAutoConfigurationReport(boolean isCrashReport) { if (this.report == null) { if (this.applicationContext == null) { this.logger.info("Unable to provide the conditions report " + "due to missing ApplicationContext"); return; }// w w w . j a v a 2 s . c o m this.report = ConditionEvaluationReport.get(this.applicationContext.getBeanFactory()); } if (!this.report.getConditionAndOutcomesBySource().isEmpty()) { if (this.getLogLevelForReport().equals(LogLevel.INFO)) { if (this.logger.isInfoEnabled()) { this.logger.info(new ConditionEvaluationReportMessage(this.report)); } else if (isCrashReport) { logMessage("info"); } } else { if (isCrashReport && this.logger.isInfoEnabled() && !this.logger.isDebugEnabled()) { logMessage("debug"); } if (this.logger.isDebugEnabled()) { this.logger.debug(new ConditionEvaluationReportMessage(this.report)); } } } }
From source file:org.springframework.boot.context.logging.LoggingApplicationListenerTests.java
@After public void clear() { LoggingSystem loggingSystem = LoggingSystem.get(getClass().getClassLoader()); loggingSystem.setLogLevel("ROOT", LogLevel.INFO); loggingSystem.cleanUp();/*from ww w. ja v a 2 s . co m*/ System.clearProperty(LoggingSystem.class.getName()); System.clearProperty(LoggingSystemProperties.LOG_FILE); System.clearProperty(LoggingSystemProperties.LOG_PATH); System.clearProperty(LoggingSystemProperties.PID_KEY); System.clearProperty(LoggingSystemProperties.EXCEPTION_CONVERSION_WORD); System.clearProperty(LoggingSystemProperties.CONSOLE_LOG_PATTERN); System.clearProperty(LoggingSystemProperties.FILE_LOG_PATTERN); System.clearProperty(LoggingSystemProperties.LOG_LEVEL_PATTERN); System.clearProperty(LoggingSystem.SYSTEM_PROPERTY); if (this.context != null) { this.context.close(); } }
From source file:org.springframework.boot.logging.DeferredLog.java
@Override public void info(Object message) { log(LogLevel.INFO, message, null); }
From source file:org.springframework.boot.logging.DeferredLog.java
@Override public void info(Object message, Throwable t) { log(LogLevel.INFO, message, t); }