Documentation
¶
Overview ¶
nolint
Index ¶
- Constants
- Variables
- func Debug(msg string, args ...interface{})
- func Error(msg string, err error)
- func Fatal(msg string, err error)
- func Info(msg string, args ...interface{})
- func NewLogger(level slog.Level) *slog.Logger
- func NewPrettyLogger(level slog.Level) *slog.Logger
- func Setup()
- func Warning(msg string, err error)
- func With(ctx context.Context) struct{ ... }
- type Option
Constants ¶
View Source
const ( LevelDebug = slog.LevelDebug LevelInfo = slog.LevelInfo LevelWarning = slog.LevelWarn LevelError = slog.LevelError LevelFatal = slog.Level(12) )
Variables ¶
View Source
var Logger = NewLogger(LevelDebug)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.