I would like to externalize the log level in logback-spring.xml as below,
<root level="${logback.loglevel}">
<appender-ref ref="CONSOLE"/>
</root>
In my application.yml file I have:
logback:
loglevel: WARN
But this value is not picked from Logback XML and runs with DEBUG level instead. If I hard coded the value there as WARN only it runs as WARN level.
