handlers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatText = "text"
	FormatJSON = "json"
)

Variables

View Source
var ErrNotFoundHandler = errors.New("not found handler")

Functions

func Get

func Get(kind, format string, defaultLogLevel slog.Level) (slog.Handler, error)

func RegisterHandler

func RegisterHandler(kind string, handler slog.Handler)

func RegisterWriter

func RegisterWriter(kind string, writer func() (io.Writer, *slog.HandlerOptions, error))

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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