Documentation
¶
Index ¶
- func Debug(msg string, args ...any)
- func Debugf(format string, args ...any)
- func Error(msg string, args ...any)
- func Errorf(format string, args ...any)
- func ErrorfWithNotifier(title, format string, args ...any)
- func Fatal(msg string, args ...any)
- func Fatalf(format string, args ...any)
- func FromContext(ctx context.Context) *slog.Logger
- func GetLogger() *slog.Logger
- func Info(msg string, args ...any)
- func Infof(format string, args ...any)
- func Init() *slog.Logger
- func Warn(msg string, args ...any)
- func Warnf(format string, args ...any)
- func WarnfWithNotifier(title, format string, args ...any)
- func WithContext(ctx context.Context, l *slog.Logger) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorfWithNotifier ¶ added in v0.6.0
func FromContext ¶ added in v0.3.2
FromContext retrieves the logger from context, falling back to the global logger.
func Infof ¶ added in v0.5.2
Infof, Debugf, Warnf, Errorf, and Fatalf are printf-style variants: format is resolved via fmt.Sprintf before logging, for callers building a message dynamically instead of attaching structured key-value fields.
func WarnfWithNotifier ¶ added in v0.6.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.