From 56e41d5877dd4bfa9b604648e82ef26936f3daa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Mon, 15 Dec 2025 12:00:14 +0100 Subject: [PATCH] Add a note that Log4J requires log path for file rotation Closes gh-48524 --- .../docs/antora/modules/reference/pages/features/logging.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/logging.adoc b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/logging.adoc index 4af1cb20300..684376a8dea 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/logging.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/logging.adoc @@ -166,6 +166,7 @@ The following table shows how the `logging.*` properties can be used together: |=== Log files rotate when they reach 10 MB and, as with console output, `ERROR`-level, `WARN`-level, and `INFO`-level messages are logged by default. +Note that Log4J2 requires `logging.file.path` to be set with such configuration. TIP: Logging properties are independent of the actual logging infrastructure. As a result, specific configuration keys (such as `logback.configurationFile` for Logback) are not managed by spring Boot.