logger

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(outlets *Outlets) *slog.Logger

func NewNullLogger

func NewNullLogger() *slog.Logger

func NewTestLogger

func NewTestLogger() *slog.Logger

func WithError added in v0.9.2

func WithError(l *slog.Logger, err error, msg string) *slog.Logger

Types

type Outlets

type Outlets struct {
	*slog.MultiHandler
	// contains filtered or unexported fields
}

func NewOutlets

func NewOutlets(handlers ...slog.Handler) *Outlets

func (*Outlets) Add

func (self *Outlets) Add(handlers ...slog.Handler) *Outlets

func (*Outlets) Handle added in v0.9.2

func (self *Outlets) Handle(ctx context.Context, r slog.Record) error

Jump to

Keyboard shortcuts

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