Versions in this module Expand all Collapse all v0 v0.0.1 Aug 21, 2024 Changes in this version + func AppendToContext(ctx context.Context, attrs ...any) context.Context + func AttrsFromContext(ctx context.Context) []any + func Debug(msg string, args ...any) + func DebugContext(ctx context.Context, msg string, args ...any) + func Error(msg string, args ...any) + func ErrorContext(ctx context.Context, msg string, args ...any) + func Info(msg string, args ...any) + func InfoContext(ctx context.Context, msg string, args ...any) + func Log(ctx context.Context, level slog.Level, msg string, args ...any) + func LogAttrs(ctx context.Context, level slog.Level, msg string, attrs ...slog.Attr) + func NewAttrsContext(ctx context.Context, attrs ...any) context.Context + func NewContext(ctx context.Context, logger *Logger) context.Context + func SetDefault(log *Logger) + func Warn(msg string, args ...any) + func WarnContext(ctx context.Context, msg string, args ...any) + type Logger struct + func Default() *Logger + func FromContext(ctx context.Context) *Logger + func Named(name string) *Logger + func New(logger *slog.Logger) *Logger + func (logger *Logger) DebugContext(ctx context.Context, msg string, args ...any) + func (logger *Logger) ErrorContext(ctx context.Context, msg string, args ...any) + func (logger *Logger) InfoContext(ctx context.Context, msg string, args ...any) + func (logger *Logger) Log(ctx context.Context, level slog.Level, msg string, args ...any) + func (logger *Logger) LogAttrs(ctx context.Context, level slog.Level, msg string, attrs ...slog.Attr) + func (logger *Logger) WarnContext(ctx context.Context, msg string, args ...any) + func (logger *Logger) With(args ...any) *Logger + func (logger *Logger) WithGroup(name string) *Logger