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(level pgx.LogLevel, msg string, data map[string]interface{})

Package zapadapter imports 3 packages (graph) and is imported by 1 packages. Updated 2019-07-24. Refresh now. Tools for package owners.