logging

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadableTextHandler

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

func NewReadableTextHandler

func NewReadableTextHandler(out io.Writer, options *ReadableTextHandlerOptions) *ReadableTextHandler

func (*ReadableTextHandler) Enabled

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

func (*ReadableTextHandler) Handle

func (h *ReadableTextHandler) Handle(ctx context.Context, record slog.Record) error

func (*ReadableTextHandler) WithAttrs

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

func (*ReadableTextHandler) WithGroup

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

type ReadableTextHandlerOptions

type ReadableTextHandlerOptions struct {
	Level slog.Leveler
}

Jump to

Keyboard shortcuts

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