github.com/jackc/pgx/v4.connRows.logger (field)
7 uses
github.com/jackc/pgx/v4 (current package)
conn.go#L542: r.logger = c
rows.go#L98: logger rowLog
rows.go#L142: if rows.logger != nil {
rows.go#L144: if rows.logger.shouldLog(LogLevelInfo) {
rows.go#L146: rows.logger.log(rows.ctx, LogLevelInfo, "Query", map[string]interface{}{"sql": rows.sql, "args": logQueryArgs(rows.args), "time": endTime.Sub(rows.startTime), "rowCount": rows.rowCount})
rows.go#L149: if rows.logger.shouldLog(LogLevelError) {
rows.go#L150: rows.logger.log(rows.ctx, LogLevelError, "Query", map[string]interface{}{"err": rows.err, "sql": rows.sql, "args": logQueryArgs(rows.args)})
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |