When using the logback configuration in the Spring Boot documentation by putting it in a logback-spring.xml
the following is printed out in the console:
CONSOLE_LOG_PATTERN_IS_UNDEFINED CONSOLE_LOG_PATTERN_IS_UNDEFINEDCONSOLE_LOG_PATTERN_IS_UNDEFINEDCONSOLE_LOG_PATTERN_IS_UNDEFINEDCONSOLE_LOG_PATTERN_IS_UNDEFINEDCONSOLE_LOG_PATTERN_IS_UNDEFINED....
That's all it prints when 1 log entry is logged. So just imagine a long line of that. The logback configuration is this:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/default.xml"/>
<include resource="org/springframework/boot/logging/logback/console-appender.xml"/>
<root level="INFO">
<appender-ref ref="CONSOLE" />
</root>
<logger name="org.springframework.web" level="DEBUG"/>
</configuration>
So reading various things about this I've tried adding a <springProperty...
for CONSOLE_LOG_PATTERN
linked to spring.console.pattern
. That didn't work. And that's what I thought default.xml
is supposed to do.
So why is this suggested configuration not working?