Documentation
¶
Overview ¶
Package log provides context-aware structured logging built on log/slog.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Inject ¶
Inject creates a new logger with request-scoped fields and stores it in context. Call once per connection (e.g., WebSocket handshake, HTTP middleware). All subsequent From(ctx) calls will include these fields.
func InjectLogger ¶
InjectLogger stores a logger in the context. Use From(ctx) to retrieve it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.