簡體   English   中英

JOOQ LoggerListener 廣泛的 DEBUG 日志記錄

[英]JOOQ LoggerListener extensive DEBUG logging

出於性能原因,我需要刪除 Docker 內運行的 Spring 引導應用程序中的org.jooq.tools.LoggerListener DEBUG日志消息。 None of the Spring Boot options like (Docker) env variable LOGGING_LEVEL_ORG_JOOQ=INFO in docker-compose.yml or Java system property -Dlogging.level.org.jooq=INFO passed to docker container in entry.sh do not remove these DEBUG messages reporting query execution細節。 這兩個選項都已在 Docker 容器級別檢查。

Even custom logback-perf.xml conf file, as in https://github.com/jOOQ/jOOQ/blob/master/jOOQ-examples/jOOQ-spring-boot-example/src/main/resources/logback.xml with DEBUG->INFO ,由LOGGING_CONFIG中的 LOGGING_CONFIG env var docker-compose.yml並不會阻止這些調試消息。 我已經通過更改附加程序模式驗證了自定義logback-perf.xml conf 文件正在使用中。

直接在 jOOQ中刪除這些消息的最佳方法是指定Settings.executeLogging = false請參見此處

顯然,還有一些方法可以正確設置記錄器,但我看不出你從描述中做了什么,或者為什么失敗了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM