I want to change jooq log level to WARN so that the below log does not show up during unit tests
2022-11-10T04:38:33.3808516Z 04:37:24.486 [com.sp.analytics.tools.snowflake.JooqBindingsGenerator.main()] DEBUG org.jooq.meta.AbstractTypedElementDefinition - Type mapping : PUBLIC.FACT_SERVICE_CHARGE_TOMBSTONE.ROW_VERSION with type INTEGER
2022-11-10T04:38:33.3809963Z 04:37:24.486 [com.sp.analytics.tools.snowflake.JooqBindingsGenerator.main()] DEBUG org.jooq.meta.AbstractTypedElementDefinition - Type mapping : PUBLIC.FACT_SERVICE_CHARGE_TOMBSTONE.UPDATED_AT with type TIMESTAMP
I have added the <logger name="org.jooq" level="WARN"/>
in my logback-test.xml
. But the above DEBUG logs are still coming.
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<root level="WARN"/>
<!-- SnapshotVerifier prints detailed snapshot on failure. Suppress that!-->
<logger name="au.com.origin.sn.SnVerifier" level="ERROR"/>
<logger name="com.sp" level="DEBUG"/>
<logger name="org.jooq" level="WARN"/>
<!-- Suppress the noise from Kafka in tests where broker is not available. !-->
<logger name="org.apache.kafka.clients.NetworkClient" level="ERROR"/>
</configuration>
Versions
- logback - 1.2.3
- slf4j - 1.7.30
- spring-boot - 2.5.8
- jooq - 3.14.6
Any suggestion on how can I change the log level of Jooq logger?