logging

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package logging builds the server's structured logger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Component

func Component(l *slog.Logger, name string) *slog.Logger

Component returns a child logger for one part of the server.

func New

func New(cfg config.Log, w io.Writer) *slog.Logger

New returns a logger writing JSON lines (or text) at the configured level. Every line carries service=server; components add their own attributes with Component.

Types

This section is empty.

Jump to

Keyboard shortcuts

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