From 0463350d2e0a02e649b93720493f722111ff5539 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 17 Jan 2017 14:23:43 +0000 Subject: [PATCH] Document that spring(Profile|Property) cannot be used with scan=true Closes gh-5611 --- .../src/main/asciidoc/spring-boot-features.adoc | 10 ++++++++++ 1 file changed, 10 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 f28f5d6143..214ef92462 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -1570,6 +1570,16 @@ NOTE: You cannot use extensions in the standard `logback.xml` configuration file it's loaded too early. You need to either use `logback-spring.xml` or define a `logging.config` property. +WARNING: The extensions cannot be used with Logback's +http://logback.qos.ch/manual/configuration.html#autoScan[configuration scanning]. If you +attempt to do so, making changes to the configuration file will result in an error similar +to once of the following being logged: + +---- +ERROR in ch.qos.logback.core.joran.spi.Interpreter@4:71 - no applicable action for [springProperty], current ElementPath is [[configuration][springProperty]] +ERROR in ch.qos.logback.core.joran.spi.Interpreter@4:71 - no applicable action for [springProfile], current ElementPath is [[configuration][springProfile]] +---- + ==== Profile-specific configuration