pgxzero

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger manages mapping pgx error messages to Zerolog.

func New

func New(logger zerolog.Logger) *Logger

New converts pgx logging messages to zerolog.

func (*Logger) Log

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

Log is the pgx Logger interface contract.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL