logging

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: AGPL-3.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package logging configures the global slog handler from a level string.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewZerologLogger

func NewZerologLogger(service string) zerolog.Logger

NewZerologLogger returns a zerolog.Logger that routes every entry through the default slog handler via zerologSlogBridge. Output is therefore formatted and levelled consistently with the rest of the application. The service name is attached as a "service" attribute on every entry. zerolog is configured at TraceLevel so all entries pass through; slog applies the active level filter inside the bridge.

func Setup

func Setup(level string)

Setup configures the global slog logger using the provided level string (e.g. the value of the LOG_LEVEL environment variable). An empty string is treated as "info". An unrecognised value logs a warning and falls back 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