From 49e111aef5cef8404045129044c0509c7ca1ea31 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Tue, 26 Nov 2019 15:25:59 -0800 Subject: [PATCH] Document logging of startup info Closes gh-19026 --- .../src/main/asciidoc/spring-boot-features.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 8dbb63d29d9c..36f644aa506a 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -42,7 +42,11 @@ When your application starts, you should see something similar to the following By default, `INFO` logging messages are shown, including some relevant startup details, such as the user that launched the application. If you need a log level other than `INFO`, you can set it, as described in <>. +The application version is determined using the implementation version from the main application class's package. +Startup information logging can be turned off by setting `spring.main.log-startup-info` to `false`. +This will also turn off logging of the application's active profiles. +TIP: To add additional logging during startup, you can override `logStartupInfo(boolean)` in a subclass of `SpringApplication`. [[boot-features-startup-failure]]