pgx: Index | Files

package log15adapter

import ""

Package log15adapter provides a logger that writes to a log.


Package Files


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 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.