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

Method Log

tracelog/tracelog_test.go:45–51  ·  view source on GitHub ↗
(ctx context.Context, level tracelog.LogLevel, msg string, data map[string]any)

Source from the content-addressed store, hash-verified

43}
44
45func (l *testLogger) Log(ctx context.Context, level tracelog.LogLevel, msg string, data map[string]any) {
46 l.mux.Lock()
47 defer l.mux.Unlock()
48
49 data["ctxdata"] = ctx.Value("ctxdata")
50 l.logs = append(l.logs, testLog{lvl: level, msg: msg, data: data})
51}
52
53func (l *testLogger) Clear() {
54 l.mux.Lock()

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected