Back to Exposed

defaultLogger

docs/api/exposed-jdbc/org.jetbrains.exposed.v1.jdbc/-jdbc-transaction/default-logger.html

1.2.0891 B
Original Source

defaultLogger

val defaultLogger: CompositeSqlLogger

A CompositeSqlLogger containing any SqlLogger instances that are implicitly added to a new transaction.

By default, this property will store the value passed to DatabaseConfig.sqlLogger when Database.connect() is invoked, wrapped as a CompositeSqlLogger. If no value is configured, the default setting is a wrapped Slf4jSqlDebugLogger, which only logs SQL strings if DEBUG level is enabled.

Generated by Dokka © 2026 Copyright