github.com/jackc/pgx/v4.Conn.log (method)
15 uses
github.com/jackc/pgx/v4 (current package)
batch.go#L73: br.conn.log(br.ctx, LogLevelError, "BatchResult.Exec", map[string]interface{}{
batch.go#L86: br.conn.log(br.ctx, LogLevelError, "BatchResult.Exec", map[string]interface{}{
batch.go#L93: br.conn.log(br.ctx, LogLevelInfo, "BatchResult.Exec", map[string]interface{}{
batch.go#L124: br.conn.log(br.ctx, LogLevelError, "BatchResult.Query", map[string]interface{}{
batch.go#L160: br.conn.log(br.ctx, LogLevelInfo, "BatchResult.Close", map[string]interface{}{
conn.go#L215: c.log(ctx, LogLevelDebug, "pgx notification handler disabled by application supplied OnNotification", map[string]interface{}{"host": config.Config.Host})
conn.go#L220: c.log(ctx, LogLevelInfo, "Dialing PostgreSQL server", map[string]interface{}{"host": config.Config.Host})
conn.go#L225: c.log(ctx, LogLevelError, "connect failed", map[string]interface{}{"err": err})
conn.go#L257: c.log(ctx, LogLevelInfo, "closed connection", nil)
conn.go#L279: c.log(ctx, LogLevelError, "Prepare failed", map[string]interface{}{"err": err, "name": name, "sql": sql})
conn.go#L345: func (c *Conn) log(ctx context.Context, lvl LogLevel, msg string, data map[string]interface{}) {
conn.go#L413: c.log(ctx, LogLevelError, "Exec", map[string]interface{}{"sql": sql, "args": logQueryArgs(arguments), "err": err})
conn.go#L420: c.log(ctx, LogLevelInfo, "Exec", map[string]interface{}{"sql": sql, "args": logQueryArgs(arguments), "time": endTime.Sub(startTime), "commandTag": commandTag})
copy_from.go#L159: ct.conn.log(ctx, LogLevelInfo, "CopyFrom", map[string]interface{}{"tableName": ct.tableName, "columnNames": ct.columnNames, "time": endTime.Sub(startTime), "rowCount": rowsAffected})
copy_from.go#L162: ct.conn.log(ctx, LogLevelError, "CopyFrom", map[string]interface{}{"err": err, "tableName": ct.tableName, "columnNames": ct.columnNames})
 |
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. |