Skip to content

Commit 49e111a

Browse files
committed
Document logging of startup info
Closes gh-19026
1 parent 01e0a27 commit 49e111a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ When your application starts, you should see something similar to the following
4242

4343
By default, `INFO` logging messages are shown, including some relevant startup details, such as the user that launched the application.
4444
If you need a log level other than `INFO`, you can set it, as described in <<boot-features-custom-log-levels>>.
45+
The application version is determined using the implementation version from the main application class's package.
46+
Startup information logging can be turned off by setting `spring.main.log-startup-info` to `false`.
47+
This will also turn off logging of the application's active profiles.
4548

49+
TIP: To add additional logging during startup, you can override `logStartupInfo(boolean)` in a subclass of `SpringApplication`.
4650

4751

4852
[[boot-features-startup-failure]]

0 commit comments

Comments
 (0)