termhandler

package
v0.0.0-...-a55dba1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Level   slog.Leveler
	Columns int
	Colors  bool
}

type TermHandler

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

func New

func New(out *os.File, opts *Options) *TermHandler

func (*TermHandler) Enabled

func (h *TermHandler) Enabled(ctx context.Context, l slog.Level) bool

func (*TermHandler) Handle

func (h *TermHandler) Handle(ctx context.Context, rec slog.Record) error

func (*TermHandler) WithAttrs

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

func (*TermHandler) WithGroup

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

Jump to

Keyboard shortcuts

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