Documentation
¶
Overview ¶
Package level is a thin compatibility wrapper that mimics common go-kit/log/level usage patterns while delegating to the Go standard library's log/slog package.
It enables transitional code like: level.Info(logger).Log("msg", "hello", "k", 1) to continue working while using slog levels and structured attributes under the hood.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyGlobalConfig ¶ added in v1.12.0
func ApplyGlobalConfig(addSource bool)
ApplyGlobalConfig sets the global configuration for including source information in log records.
Types ¶
type Logger ¶
Logger is an interface for logging key-value pairs with a flexible and customizable structure.
Click to show internal directories.
Click to hide internal directories.