Example usage for org.springframework.boot.context.event ApplicationStartingEvent getSpringApplication

List of usage examples for org.springframework.boot.context.event ApplicationStartingEvent getSpringApplication

Introduction

In this page you can find the example usage for org.springframework.boot.context.event ApplicationStartingEvent getSpringApplication.

Prototype

public SpringApplication getSpringApplication() 

Source Link

Usage

From source file:org.springframework.boot.context.logging.LoggingApplicationListener.java

private void onApplicationStartingEvent(ApplicationStartingEvent event) {
    this.loggingSystem = LoggingSystem.get(event.getSpringApplication().getClassLoader());
    this.loggingSystem.beforeInitialize();
}