List of usage examples for org.springframework.boot.logging LoggingSystemProperties LoggingSystemProperties
public LoggingSystemProperties(Environment environment)
From source file:org.springframework.boot.context.logging.LoggingApplicationListener.java
/** * Initialize the logging system according to preferences expressed through the * {@link Environment} and the classpath. * @param environment the environment//from www .j a v a 2s . c om * @param classLoader the classloader */ protected void initialize(ConfigurableEnvironment environment, ClassLoader classLoader) { new LoggingSystemProperties(environment).apply(); LogFile logFile = LogFile.get(environment); if (logFile != null) { logFile.applyToSystemProperties(); } initializeEarlyLoggingLevel(environment); initializeSystem(environment, this.loggingSystem, logFile); initializeFinalLoggingLevels(environment, this.loggingSystem); registerShutdownHookIfNecessary(environment, this.loggingSystem); }