logging

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package logging configures log/slog for the process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(w io.Writer, level, format string) *slog.Logger

New returns a logger writing to w in the given format ("json" or "text") at the given level ("debug", "info", "warn", "error").

func ParseLevel

func ParseLevel(s string) slog.Level

ParseLevel maps a level name to a slog.Level, defaulting to info.

Types

This section is empty.

Jump to

Keyboard shortcuts

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