log

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, args ...any)

func Default

func Default() *slog.Logger

func Disable

func Disable()

func Enable

func Enable()

func Error

func Error(msg string, args ...any)

func Info

func Info(msg string, args ...any)

func SetDefault

func SetDefault(logger *slog.Logger)

func SetLevel

func SetLevel(level slog.Level)

func Warn

func Warn(msg string, args ...any)

Types

type CustomHandler added in v0.2.0

type CustomHandler struct {
	slog.Handler
}

func NewCustomHandler added in v0.2.0

func NewCustomHandler(w io.Writer, opts *slog.HandlerOptions) *CustomHandler

func (*CustomHandler) Handle added in v0.2.0

func (h *CustomHandler) Handle(ctx context.Context, r slog.Record) error

type Format

type Format int

type Logger

type Logger struct {
	*slog.Logger
}

Jump to

Keyboard shortcuts

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