From 495a79c3243a46cfadff7bd2c49d65fb9fed8918 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 30 Mar 2015 16:59:33 -0700 Subject: [PATCH] Document logging properties with @PropertySource Add a note to the logging documentation to point out a potential gotcha. Fixes gh-2709 --- spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index ac82bebf78d..72947637b74 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -867,6 +867,10 @@ relative to the current directory. Log files will rotate when they reach 10 Mb and as with console output, `ERROR`, `WARN` and `INFO` level messages are logged by default. +NOTE: The logging system is initialized early in the application lifecycle and as such +logging properties will not be found in property files loaded via `@PropertySource` +annotations. + [[boot-features-custom-log-levels]]