Documentation ¶
Overview ¶
Package slogcontexthandler provides a slog.Handler that adds attributes from the log's context.Context.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAttrs ¶
AddAttrs adds attributes to a context.Context.
The attributes will be merged with any existing attributes on the context.
Any new attribute with the same key as an existing attribute will replace the existing attribute.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.