logging

package
v0.2.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(json bool, level string) *slog.Logger

func ParseLevel

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

ParseLevel parses a slog level name (debug, info, warn, error; case-insensitive). Empty defaults to info.

func ReplaceAttrs

func ReplaceAttrs(_ []string, attr slog.Attr) slog.Attr

ReplaceAttrs normalizes errors before they reach a slog handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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