You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use a structure zero copy logger like zerolog or zap #108
Not only will they reduce the number of memory allocations but they will also introduce structured logging, which makes debugging and correlating requests with eg. an elk stack so much more pleasant.
In order to let others inject a logger of their choice we should use a common logger api, see #107
The new log/slog package provides structured logging with levels. Structured logging emits key-value pairs to enable fast, accurate processing of large amounts of log data. The package supports integration with popular log analysis tools and services.
Activity
[-]Use a zero copy logger like zerolog[/-][+]Use a structure zero copy logger like zerolog or zap[/+]infogulch commentedon Aug 22, 2023
Go 1.21 released with the
log/slogpackage: