Documentation
¶
Index ¶
- func Close(ctx context.Context, closer io.Closer, description string)
- func CorrelationId(ctx context.Context) string
- func FromContext(ctx context.Context) *slog.Logger
- func IntoContext(ctx context.Context, logger *slog.Logger) context.Context
- func New(level string) *slog.Logger
- func WithCorrelationId(ctx context.Context, id string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CorrelationId ¶
CorrelationId retrieves correlation id from the context.
func FromContext ¶
FromContext returns logger from the context or noop implementation.
func IntoContext ¶
IntoContext injects the given logger into context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.