Documentation
¶
Overview ¶
Package log is a common spot for claircore logging.
Index ¶
Constants ¶
View Source
const ( // AttrsKey is a common value to be used with [context.Context.Value] to // retrieve extra logging information from [slog.Record] values produced by // claircore packages. // // The value returned will be a [slog.Value] of kind "Group" if present. AttrsKey ctxkey // LevelKey is a common value to be used with [context.Context.Value] to // retrieve a per-record minimum [slog.Level] from [slog.Record] values // produced by claircore packages. LevelKey )
Variables ¶
This section is empty.
Functions ¶
func WithLevel ¶
WithLevel returns a context with the slog.Leveler stored at LevelKey.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.