Documentation
¶
Overview ¶
Package log contains utility functions around Go slog package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext retrieves logger from the given context. If no logger is associated with the given context it will return value from slog.Default.
func NewJSONTraceIDHandler ¶
NewJSONTraceIDHandler creates new slog.JSONHandler which adds a `TraceID` attribute to all loggings if trace id is present.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.