zapx: go.bobheadxi.dev/zapx/zpgx Index | Files

package zpgx

import "go.bobheadxi.dev/zapx/zpgx"

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

TODO: examples

Index

Package Files

doc.go pgx.go

func NewLogger Uses

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

NewLogger wraps the given logger in pgx.Logger

type Options Uses

type Options struct {
    LogInfoAsDebug bool
}

Options denotes configuration for the pgx database logger

Package zpgx imports 2 packages (graph) and is imported by 1 packages. Updated 2019-08-24. Refresh now. Tools for package owners.