Documentation
¶
Index ¶
- func Debug(msg string, args ...any)
- func Diagnostic(event DiagnosticEvent)
- func Error(msg string, args ...any)
- func Info(msg string, args ...any)
- func Init() (io.Closer, error)
- func L() *slog.Logger
- func ProfileFallback(scope, profile string)
- func SetLogger(l *slog.Logger) *slog.Logger
- func UseStderr(w io.Writer)
- func Warn(msg string, args ...any)
- type DiagnosticEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diagnostic ¶
func Diagnostic(event DiagnosticEvent)
func ProfileFallback ¶
func ProfileFallback(scope, profile string)
func SetLogger ¶
SetLogger swaps the package logger and returns the previous one, so callers (chiefly tests) can install a capturing handler and restore it afterwards.
Types ¶
Click to show internal directories.
Click to hide internal directories.