log

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package log provides bounded slog attributes compatible with log's standard log/slog composition API. Attrs forwards to adapters/slog and owns no logger, handler, background resource or shutdown. Returned slices are owned; disclosure keys are borrowed, and direct raw exposure does not validate IDs.

Deprecated: use github.com/faustbrian/go-correlation/adapters/slog. This package remains supported through the documented compatibility interval.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attrs

func Attrs(values correlation.Values, policy correlation.DisclosurePolicy) ([]slog.Attr, error)

Attrs returns only non-empty identifier attributes under an explicit disclosure policy. It preserves adapters/slog ordering, errors, empty-value skipping and newly allocated output; it does not emit a log record.

Types

This section is empty.

Jump to

Keyboard shortcuts

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