This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
Replace Zerolog with Go's slog #122
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Milestone
Now that Go has its own structure logger, we can drop the dependency on Zerolog and use Go's
slog
instead.I think the quikest way to do this is by removing all import of zerolog.
Might be a good opportunity to maybe get rid of all
logger
pass around and simply use the globalslog
after configuring it based on the environment variables already used to Zerolog.Couple of pointer for this tasks:
slog
has a sharable global instance.logger
field on structure and function protytope and building / fixing issue seems a good way to do this.The text was updated successfully, but these errors were encountered: