Back to godoc.org
github.com/jackc/pgx / log / testingadapter

Package testingadapter

v0.0.0-...-23388fe
Latest Go to latest

The latest major version is v4.

Published: Sep 27, 2019 | License: MIT | Module: github.com/jackc/pgx

Overview

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

Index

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