pgx: github.com/jackc/pgx/log/zerologadapter Index | Files

package zerologadapter

import "github.com/jackc/pgx/log/zerologadapter"

Package zerologadapter provides a logger that writes to a github.com/rs/zerolog.

Index

Package Files

adapter.go

type Logger Uses

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

func NewLogger Uses

func NewLogger(logger zerolog.Logger) *Logger

NewLogger accepts a zerolog.Logger as input and returns a new custom pgx logging fascade as output.

func (*Logger) Log Uses

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

Package zerologadapter imports 2 packages (graph). Updated 2019-01-11. Refresh now. Tools for package owners.