Documentation
¶
Overview ¶
Package logging installs the process-wide slog handler with a runtime-changeable level.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseLevel ¶
ParseLevel maps a level name (case-insensitive) to a slog.Level, defaulting to info.
func SetLevel ¶
SetLevel changes the level for the remaining lifetime of the process and cancels any pending auto-revert.
func SetLevelFor ¶
SetLevelFor changes the level for ttl, then restores the previous level. ttl <= 0 is treated as a permanent SetLevel.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.