logging

package
v0.31.0 Latest Latest
Warning

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

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

Documentation

Overview

Package logging resolves the user-supplied logger into the never-nil, optionally level-gated *slog.Logger the rest of beehive logs through.

Index

Constants

This section is empty.

Variables

Discard is the resolved logger when logging is disabled (the default), so call sites log unconditionally with no nil checks.

Functions

func Resolve

func Resolve(l *slog.Logger, level slog.Leveler) *slog.Logger

Resolve turns the user-supplied (possibly nil) logger and optional minimum level into a never-nil *slog.Logger. A nil logger disables logging; a non-nil level drops records below it, on top of the handler's own filtering.

Types

This section is empty.

Jump to

Keyboard shortcuts

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