Replace zap with log/slog #37
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/multiproxy!37
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/slog"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
zap is gone from
go.mod.log.Middlewaretakes an access and a server*slog.Logger. The helpers take slog key-value arguments, and every request-scoped record is written with the request context, which the OpenTelemetry change builds on. Per-request sequence numbers, IDs, parent linkage and logger names work as before.The command writes JSON access records to stdout without level or message, as before, and JSON server records to stderr. The visible format change is
timereplacingts, plus upper-case levels.Breaking for library users:
Middleware's signature, slog arguments instead ofzap.Field, and the removed zap encoder configs andlog.Fatal.