From 45b62b145287baf341c71ddc2c92c5863d3e02b7 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 9 Aug 2023 10:42:22 +0100 Subject: [PATCH] Clarify transfer of logging props from Environment to System props Closes gh-32160 --- .../spring-boot-docs/src/docs/asciidoc/features/logging.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/logging.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/logging.adoc index 65b62a2d1c..3684e3e395 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/logging.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/logging.adoc @@ -307,7 +307,9 @@ If you use standard configuration locations, Spring cannot completely control lo WARNING: There are known classloading issues with Java Util Logging that cause problems when running from an 'executable jar'. We recommend that you avoid it when running from an 'executable jar' if at all possible. -To help with the customization, some other properties are transferred from the Spring `Environment` to System properties, as described in the following table: +To help with the customization, some other properties are transferred from the Spring `Environment` to System properties. +This allows the properties to be consumed by logging system configuration. For example, setting `logging.file.name` in `application.properties` or `LOGGING_FILE_NAME` as an environment variable will result in the `LOG_FILE` System property being set. +The properties that are transferred are described in the following table: |=== | Spring Environment | System Property | Comments