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

package log15adapter

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

Package log15adapter provides a logger that writes to a github.com/inconshreveable/log15.Logger log.

Index

Package Files

adapter.go

type Log15Logger Uses

type Log15Logger interface {
    Debug(msg string, ctx ...interface{})
    Info(msg string, ctx ...interface{})
    Warn(msg string, ctx ...interface{})
    Error(msg string, ctx ...interface{})
    Crit(msg string, ctx ...interface{})
}

Log15Logger interface defines the subset of github.com/inconshreveable/log15.Logger that this adapter uses.

type Logger Uses

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

func NewLogger Uses

func NewLogger(l Log15Logger) *Logger

func (*Logger) Log Uses

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

Package log15adapter imports 2 packages (graph) and is imported by 3 packages. Updated 2019-09-19. Refresh now. Tools for package owners.