logging

package
v0.12.0 Latest Latest
Warning

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

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

Documentation

Overview

Package logging configures the process-wide structured logger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New builds a slog.Logger writing to w in the given format and level.

Types

type Format

type Format string

Format selects the log output encoding.

const (
	FormatJSON Format = "json"
	FormatText Format = "text"
)

Jump to

Keyboard shortcuts

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