logger

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLevel

func ParseLevel(s string) (slog.Level, error)

ParseLevel converts a log level string (debug|info|warn|error) to slog.Level.

func Setup

func Setup(level slog.Level, extra ...slog.Handler)

Setup configures the default slog logger with a text handler to stderr. Additional handlers (e.g. OTel bridge) can be passed to fan out log records to multiple destinations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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