zpgx

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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