Example usage for org.springframework.boot.logging LogFile applyToSystemProperties

List of usage examples for org.springframework.boot.logging LogFile applyToSystemProperties

Introduction

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

Prototype

public void applyToSystemProperties() 

Source Link

Document

Apply log file details to LOG_PATH and LOG_FILE system properties.

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 w  w  w.  j a  v  a2  s .  c o m
 * @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);
}