v4github.com/jackc/pgx/v4/log/logrusadapter Index | Files

package logrusadapter

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

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

Index

Types

type Logger

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

func NewLogger

func NewLogger(l logrus.FieldLogger) *Logger

func (*Logger) Log

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

Source Files

adapter.go

Version
v4.17.1
Published
Aug 27, 2022
Platform
windows/amd64
Imports
3 packages
Last checked
29 minutes ago

Tools for package owners.