I'm using Wiremock for my tests in a Spring Boot app. I can't seem to get the logging to not output all debug logs, which makes my test runs very verbose.
I see it use SLF4J on startup:
DEBUG wiremock.org.eclipse.jetty.util.log - Logging to Logger[wiremock.org.eclipse.jetty.util.log] via wiremock.org.eclipse.jetty.util.log.Slf4jLog
But trying to configure it in my application.properties via,
logging.level.wiremock.org.eclipse=WARN
Has no effect, I've also setup
logging.level.com.github.tomakehurst.wiremock=WARN
But again, no effect. Since I'm using spring-boot-starter-web
which uses spring-boot-starter-logging
, which if I understand correctly uses Logback, I've also tried configuring this in logback-spring.xml
,
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<logger name="wiremock.org.eclipse" level="INFO"/>
</configuration>
Again, nothing I do stops Wiremock from logging debug level. What am I missing?