logger

package
v0.0.0-...-ea2d26f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Err

func Err(err error) slog.Attr

func NewTracer

func NewTracer(l *Logger) pgx.QueryTracer

func Query

func Query(q string) slog.Attr

Types

type Logger

type Logger struct {
	*slog.Logger
}

Logger -.

func New

func New(level, env string) *Logger

New -.

func (*Logger) Log

func (l *Logger) Log(ctx context.Context, level tracelog.LogLevel, msg string, data map[string]any)

func (*Logger) Printf

func (l *Logger) Printf(msg string, args ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL