简体   繁体   中英

how to log generated sql executed by JOOQ

在执行JOOQ查询时,将生成的SQL执行日志记录到日志的最简单方法是什么

As mentioned in a comment, this is documented in the manual: https://www.jooq.org/doc/latest/manual/sql-execution/logging/ .

So you don't have to enable DEBUG logging on the root logger, you can do it only on the org.jooq.tools.LoggerListener logger, which does all the SQL logging in jOOQ.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM