Search and commands

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

Type to search packages.

testingadapter

v3.6.2+incompatible
github.com/cdn77/pgx/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(level pgx.LogLevel, msg string, data map[string]interface{})

TestingLogger

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

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

Dependency graph