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

package zapadapter

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

Package zapadapter provides a logger that writes to a go.uber.org/zap.Logger.

Index

Package Files

adapter.go

type Logger Uses

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

func NewLogger Uses

func NewLogger(logger *zap.Logger) *Logger

func (*Logger) Log Uses

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

Package zapadapter imports 4 packages (graph) and is imported by 1 packages. Updated 2019-09-17. Refresh now. Tools for package owners.