hibiken / asynq

Simple, reliable, and efficient distributed task queue in Go
MIT License
9.66k stars 697 forks source link

[FEATURE REQUEST] switch logger to golang.org/x/exp/slog #670

Open ryan961 opened 1 year ago

ryan961 commented 1 year ago

Slog is set to be introduced in Go 1.21 as part of the standard library (api: audit for Go 1.21 #60560), utilizing the standard Logger interface for easier integration by users.

mujehoxe commented 1 week ago

How can i use it instead of the default logger of asynq?

mujehoxe commented 1 week ago

I now am receiving a different structure from asynq from my logger

{"time":"2024-10-24T17:37:07.416311372+01:00","level":"INFO","msg":"Starting worker..."} asynq: pid=343207 2024/10/24 16:37:07.416384 INFO: Starting processing {"time":"2024-10-24T17:37:07.416342416+01:00","level":"INFO","msg":"Starting API server on :8181..."}