slog

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

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

Wrapper implements slog.Handler by delegating to an xlog.Logger.

func NewWrapper

func NewWrapper(logger xlog.Logger) *Wrapper

func (*Wrapper) Enabled

func (h *Wrapper) Enabled(_ context.Context, _ slog.Level) bool

func (*Wrapper) Handle

func (h *Wrapper) Handle(_ context.Context, r slog.Record) error

func (*Wrapper) WithAttrs

func (h *Wrapper) WithAttrs(attrs []slog.Attr) slog.Handler

func (*Wrapper) WithGroup

func (h *Wrapper) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

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