Back to / log / testingadapter

Package testingadapter

Latest Go to latest

The latest major version is v4.

Published: Sep 27, 2019 | License: MIT | Module:


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


type Logger

type Logger struct {
	// contains filtered or unexported fields

func NewLogger

func NewLogger(l TestingLogger) *Logger

func (*Logger) Log

func (l *Logger) Log(level pgx.LogLevel, msg string, data map[string]interface{})

type TestingLogger

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

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier