Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

testingadapter

v5.13.0
github.com/jackc/pgx/v5/log/testingadapter

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

5 matches

Top ↑

Package testingadapter provides a logger that writes to a test or benchmark log.

Types

Logger

type Logger struct {
	// contains filtered or unexported fields
}

NewLogger

func NewLogger(l TestingLogger) *Logger

Logger.Log

func (l *Logger) Log(ctx context.Context, level tracelog.LogLevel, msg string, data map[string]any)

TestingLogger

type TestingLogger interface {
	Log(args ...any)
}

TestingLogger interface defines the subset of testing.TB methods used by this adapter.

Dependency graph