Documentation
¶
Index ¶
- func ContextLogger(ctx context.Context) *slog.Logger
- func Debug(ctx context.Context, msg string, attrs ...slog.Attr)
- func Error(ctx context.Context, msg string, attrs ...slog.Attr)
- func Info(ctx context.Context, msg string, attrs ...slog.Attr)
- func Log(ctx context.Context, leveler slog.Leveler, msg string, attrs []slog.Attr)
- func TransferLogger(dst context.Context, src context.Context) context.Context
- func Warn(ctx context.Context, msg string, attrs ...slog.Attr)
- func WithLogger(ctx context.Context, logger *slog.Logger) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextLogger ¶
ContextLogger returns slog logger from ctx.
func TransferLogger ¶
TransferLogger returns a new context that is bound with slog logger from src and based on dst.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.