MCPcopy
hub / github.com/jackc/pgx / Log

Method Log

tracelog/tracelog.go:54–54  ·  view source on GitHub ↗

Log a message at the given level with data key/value pairs. data may be nil.

(ctx context.Context, level LogLevel, msg string, data map[string]any)

Source from the content-addressed store, hash-verified

52type Logger interface {
53 // Log a message at the given level with data key/value pairs. data may be nil.
54 Log(ctx context.Context, level LogLevel, msg string, data map[string]any)
55}
56
57// LoggerFunc is a wrapper around a function to satisfy the pgx.Logger interface

Callers 8

TestInetCIDRTranscodeIPFunction · 0.65
TraceConnectEndMethod · 0.65
TraceAcquireEndMethod · 0.65
logMethod · 0.65

Implementers 3

testLoggertracelog/tracelog_test.go
Loggerlog/testingadapter/adapter.go
testLoggerstdlib/sql_test.go

Calls

no outgoing calls