logging

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(env string) *slog.Logger

New creates a *slog.Logger wrapped with an otelHandler that automatically injects trace_id and span_id from the OpenTelemetry span context. In dev mode it uses a human-readable text handler; otherwise JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

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