Back to godoc.org

Package zapadapter

v3.6.2+incompatible
Latest Go to latest

The latest major version is .

Published: Jan 24, 2020 | License: MIT | Module: github.com/benjamin-bader/pgx

Overview

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

Index

type Logger

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

func NewLogger

func NewLogger(logger *zap.Logger) *Logger

func (*Logger) Log

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

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