Documentation

Overview

Package zpgx provides zap extensions for `jackc/pgx` (https://godoc.org/github.com/jackc/pgx).

TODO: examples

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(l *zap.Logger, opts Options) pgx.Logger

NewLogger wraps the given logger in pgx.Logger

Types

type Options

type Options struct {
	LogInfoAsDebug bool
}

Options denotes configuration for the pgx database logger

Source Files