From 84633dae00b83a0267b8f33ee967653fc656f974 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Wed, 28 May 2014 12:20:28 +0100 Subject: [PATCH] Clarify in docs that @PropertySource is parsed late Fixes gh-970 --- spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 918f249af2..29ce659dfd 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -723,7 +723,10 @@ As with console output, `ERROR`, `WARN` and `INFO` level messages are logged by The various logging systems can be activated by including the appropriate libraries on the classpath, and further customized by providing a suitable configuration file in the root of the classpath, or in a location specified by the Spring `Environment` property -`logging.config`. +`logging.config`. (Note however that since logging is initialized *before* the `ApplicationContext +is created, it isn't possible to control logging from `@PropertySources` in Spring +`@Configuration` files. System properties and the conventional Spring Boot external +configuration files work just fine.) Depending on your logging system, the following files will be loaded: