Documentation
¶
Index ¶
- Variables
- func Debug(msg string, args ...any)
- func Error(msg string, args ...any)
- func FromContext(ctx context.Context) *slog.Logger
- func Info(msg string, args ...any)
- func Init(level, format string)
- func Warn(msg string, args ...any)
- func WithContext(ctx context.Context, l *slog.Logger) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var (
L *slog.Logger = slog.Default()
)
Functions ¶
func FromContext ¶
FromContext returns the logger from ctx, or the global logger if not set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.