Categories / Logging

veqryn

veqryn / slog-context

Use golang structured logging (slog) with context. Add and retrieve logger to and from context. Add attributes to context. Automatically read any custom context values, such as OpenTelemetry TraceID.

Last push 5 days ago

Created

Nov 2023

Total stars

196

7 days

0

30 days

0

12 months

+39

Star trends

README badge

Best of Go badge for veqryn/slog-context
[![Best of Go](https://bestofgo.dev/badge/veqryn/slog-context.svg)](https://bestofgo.dev/veqryn/slog-context)