logger

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(level slog.Level) *slog.Logger

Types

type ColorTextHandler added in v0.0.39

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

Custom text handler with color support

func (*ColorTextHandler) Enabled added in v0.0.39

func (h *ColorTextHandler) Enabled(ctx context.Context, level slog.Level) bool

func (*ColorTextHandler) Handle added in v0.0.39

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

func (*ColorTextHandler) WithAttrs added in v0.0.39

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

func (*ColorTextHandler) WithGroup added in v0.0.39

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

Jump to

Keyboard shortcuts

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