pgx: Index | Files

package zerologadapter

import ""

Package zerologadapter provides a logger that writes to a


Package Files


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(ctx context.Context, level pgx.LogLevel, msg string, data map[string]interface{})

Package zerologadapter imports 3 packages (graph). Updated 2019-09-23. Refresh now. Tools for package owners.