Example usage for org.springframework.boot.logging LoggingSystemProperties LoggingSystemProperties

List of usage examples for org.springframework.boot.logging LoggingSystemProperties LoggingSystemProperties

Introduction

In this page you can find the example usage for org.springframework.boot.logging LoggingSystemProperties LoggingSystemProperties.

Prototype

public LoggingSystemProperties(Environment environment) 

Source Link

Document

Create a new LoggingSystemProperties instance.

Usage

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);
}