logging

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package logging configures application-wide structured logging.

All log output is JSON on stdout via log/slog. Setup installs the process-wide default logger and bridges the standard library's log package into it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup() *slog.Logger

Setup installs a JSON slog handler as the process-wide default logger and returns it. The level is taken from LOG_LEVEL (debug|info|warn|error), defaulting to info. Call once, as early in main as possible.

Types

This section is empty.

Jump to

Keyboard shortcuts

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