xlog

package
v0.1.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisabledLogger = slog.New(DisabledLogHandler{})

Functions

This section is empty.

Types

type DisabledLogHandler

type DisabledLogHandler struct{}

func (DisabledLogHandler) Enabled

func (d DisabledLogHandler) Enabled(ctx context.Context, level slog.Level) bool

func (DisabledLogHandler) Handle

func (d DisabledLogHandler) Handle(ctx context.Context, record slog.Record) error

func (DisabledLogHandler) WithAttrs

func (d DisabledLogHandler) WithAttrs(attrs []slog.Attr) slog.Handler

func (DisabledLogHandler) WithGroup

func (d DisabledLogHandler) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

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