logging

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLevelFilter added in v0.4.0

func NewLevelFilter(minLevel slog.Level, inner slog.Handler) slog.Handler

NewLevelFilter wraps inner, silently dropping records below minLevel. Use this to give a specific handler (e.g. the OTEL log bridge) a different minimum level than the console handler.

func Setup

func Setup(level, format string, extra ...slog.Handler) *slog.Logger

Setup creates a structured slog.Logger and installs it as the global default. Any additional slog.Handlers (e.g. an OTEL log bridge) can be appended via the extra variadic parameter. Log records are sent to all handlers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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