Logging.level.root not working (spring boot)

I have a property logging.level.root=FATALin my application.properties application, but it does not work. Application stil uses the levels defined in mylogback-spring.xml

I read the whole http://docs.spring.io/spring-boot/docs/1.4.4.RELEASE/reference/htmlsingle/#howto-logging , but I can not find the key, which may be wrong.

My logback-spring.xmlstarts with

<include resource="org/springframework/boot/logging/logback/defaults.xml"/>

Then the standard recorder configuration, for example

<logger name="org.hibernate" level="INFO"/>

Where is the code that uses the property logging.level.*? I checked org.springframework.boot.logging.LoggingSystem, org.springframework.boot.logging.logback.LogbackConfigurator, org.springframework.boot.logging.logback.LogbackLoggingSystem, but I cannot find property references logging.level.*.

I have the same problem with Spring Boot 1.4.3, 1.4.4, 1.5.1, but it does not work in any of them.

+4
1

logging.level.root , . / xml.

, /, xml ( jar). .

+1

Source: https://habr.com/ru/post/1668536/


All Articles