-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Description
Hi,
Currently in Spring Boot 1.4.0M3, in LogbackLoggingSystem
within the method "loadConfiguration", the check for Status.ERRORS is too strict when it comes to missing property resources/files. Under normal logback conditions, Logback logs the error but continues onwards. In Spring Boot, the startup is aborted.
For example, in a logback-spring.xml configuration:
<property resource="blahblah.properties">
<property file="/a/directory/blahblah.properties"/>
Would cause the bootup to fail. Without using Spring Boot the error is echoed to the appender but ignored. It is quite often the case that this missing resources/files are fine, it doesn't affect the system and logback defaults to using the set values configured within the configuration file. So, being too strict here, IMHO, is too much.
In my view, if it is a Status.ERROR
and if the Status.getOrigin == PropertyAction
and if the message contains "Could not find" we should just skip onwards...
If I have some time, I'll put together a patch (and test if appropriate) for this.
-=david=-