pgx: github.com/jackc/pgx/log/testingadapter Index | Files

package testingadapter

import "github.com/jackc/pgx/log/testingadapter"

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

Index

Package Files

adapter.go

type Logger Uses

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

func NewLogger Uses

func NewLogger(l TestingLogger) *Logger

func (*Logger) Log Uses

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

type TestingLogger Uses

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

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

Package testingadapter imports 2 packages (graph). Updated 2018-04-14. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).