All versions: 3.11 | 3.10 | 3.9 | Development versions: 3.12

This optional top level configuration element simply allows for overriding the log level of anything that has been specified by the runtime, e.g. in log4j or slf4j and is helpful for per-code-generation log configuration. For example, in order to mute everything that is less than WARN level, write:

XML configuration (standalone and Maven)

<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.11.0.xsd">
  <logging>WARN</logging>
  ...
</configuration>

Programmatic configuration

configuration.withLogging(Logging.WARN);

Gradle configuration

myConfigurationName(sourceSets.main) {
  logging = 'WARN'
}

Available log levels are

  • TRACE
  • DEBUG
  • INFO
  • WARN
  • ERROR
  • FATAL
The jOOQ Logo