Documentation
¶
Index ¶
Constants ¶
View Source
const LevelTrace = slog.LevelDebug - 4
LevelTrace is a custom trace level for slog Using LevelDebug - 4 which equals -8
Variables ¶
View Source
var LoggerKey = Key{}
Functions ¶
func DisableErrorMirroring ¶ added in v0.2.0
func DisableErrorMirroring()
DisableErrorMirroring stops mirroring error level logs to the secondary handler. This is used for interactive commands where stderr output would disrupt the UI.
func EnableErrorMirroring ¶ added in v0.2.0
func EnableErrorMirroring()
EnableErrorMirroring ensures error level logs are mirrored to the secondary handler when one is configured.
Types ¶
Click to show internal directories.
Click to hide internal directories.