We have a multi-module Spring Boot project and it has DEBUG level logging that need to be changed to INFO level. As it uses Spring Boot 1.2.5, I followed the instructions here and here, but setting logging.level.org.springframework.web=INFO in application.properties has no effect and we keep getting DEBUG messages in the log.
However, providing a logback.xml like the one on the above mentioned site and setting the level there works. Even without setting it explicitly, as the base.xml that comes with Spring Boot and is included in our logback.xml has the root logging level set to INFO by default.
Spring Boot uses SLF4J with Logback as default but we do not want to depend on Logback just because of this and we should be able to configure logging level from application.properties. The project is configured programatically so application.properties does not contain anything else. Both configuration files are in the classpath under src/main/resources.
I have tried with logging.level.*=INFO, tried different delimiters (:, , =). I have searched though the project files but have found no traces of existing log configuration.
What can cause that application.properties is being ignored/overidden but logback.xml is not?
application.properties
logging.level.org.springframework.web=INFO
logback.xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
</configuration>
logback.xmli doubt the settings from theapplication.propertieswill still work. Try removing yourlogback.xmlfile and only use anapplication.propertiesone. - M. Deinumlogback.xmltheapplication.propertieswon't take effect. - deakandris