Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶
func NewLogger(debugEnabled DebugEnabledFunc) *slog.Logger
NewLogger creates a new logger with dynamic debug checking
Types ¶
type DebugCheckHandler ¶
type DebugCheckHandler struct {
// contains filtered or unexported fields
}
DebugCheckHandler checks settings.Debug at log time
type DebugEnabledFunc ¶
type DebugEnabledFunc func() bool
DebugEnabledFunc is a function type that determines if debug logging is enabled We use a function because we want to check the setting at log time, not when the logger is created
Click to show internal directories.
Click to hide internal directories.