Documentation
¶
Index ¶
Constants ¶
View Source
const ( LevelDebug = slog.LevelDebug LevelDebugName = "debug" LevelInfo = slog.LevelInfo LevelInfoName = "info" LevelWarning = slog.LevelWarn LevelWarningName = "warning" LevelError = slog.LevelError LevelErrorName = "error" LevelCritical = slog.Level(12) LevelCriticalName = "critical" )
Variables ¶
This section is empty.
Functions ¶
func BuildLogValue ¶ added in v0.59.0
BuildLogValue returns a slog.Value for any value, excluding fields by name or dot-path. Examples:
- "Deployments" excludes the top-level field
- "Deployments.Internal" excludes Internal inside each element of Deployments
Matches both Go field names and yaml tag names at each level.
func BuildSliceLogValue ¶ added in v0.59.0
BuildSliceLogValue maps any slice/array to a slog.Value, applying nested ignore paths.
Types ¶
Click to show internal directories.
Click to hide internal directories.