pgx: Index | Files

package testingadapter

import ""

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


Package Files


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(ctx context.Context, 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 3 packages (graph). Updated 2019-09-18. Refresh now. Tools for package owners.