Skip to content

Commit 495a79c

Browse files
committed
Document logging properties with @propertysource
Add a note to the logging documentation to point out a potential gotcha. Fixes gh-2709
1 parent 18afe8b commit 495a79c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,10 @@ relative to the current directory.
867867
Log files will rotate when they reach 10 Mb and as with console output, `ERROR`, `WARN`
868868
and `INFO` level messages are logged by default.
869869

870+
NOTE: The logging system is initialized early in the application lifecycle and as such
871+
logging properties will not be found in property files loaded via `@PropertySource`
872+
annotations.
873+
870874

871875

872876
[[boot-features-custom-log-levels]]

0 commit comments

Comments
 (0)