Documentation
¶
Index ¶
- func FromContext(ctx context.Context) *slog.Logger
- func New(cfg Config) *slog.Logger
- func NewContext(ctx context.Context, logger *slog.Logger) context.Context
- func RequestID(ctx context.Context) string
- func With(ctx context.Context, attrs ...any) context.Context
- func WithRequestID(ctx context.Context, requestID string) context.Context
- type Config
- type RequestIDKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RequestIDKey ¶
type RequestIDKey struct{}
Click to show internal directories.
Click to hide internal directories.