Documentation
¶
Overview ¶
Package logctx carries structured loggers through a context.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext falls back to slog.Default when no logger is attached.
func WithContext ¶
WithContext preserves the logger's handler and attributes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.