Search in sources :

Example 1 with LoggingSystemProperties

use of org.springframework.boot.logging.LoggingSystemProperties in project spring-boot by spring-projects.

the class LoggingApplicationListener method initialize.

/**
	 * Initialize the logging system according to preferences expressed through the
	 * {@link Environment} and the classpath.
	 * @param environment the environment
	 * @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);
}
Also used : LogFile(org.springframework.boot.logging.LogFile) LoggingSystemProperties(org.springframework.boot.logging.LoggingSystemProperties)

Aggregations

LogFile (org.springframework.boot.logging.LogFile)1 LoggingSystemProperties (org.springframework.boot.logging.LoggingSystemProperties)1