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

package logrusadapter

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

Package logrusadapter provides a logger that writes to a github.com/sirupsen/logrus.Logger log.

Index

Package Files

adapter.go

type Logger Uses

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

func NewLogger Uses

func NewLogger(l logrus.FieldLogger) *Logger

func (*Logger) Log Uses

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

Package logrusadapter imports 3 packages (graph) and is imported by 1 packages. Updated 2019-09-16. Refresh now. Tools for package owners.