Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ryan961 opened this issue Jun 13, 2023 · 2 comments
Open

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

ryan961 opened this issue Jun 13, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ryan961
Copy link

ryan961 commented Jun 13, 2023

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
Copy link

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

@mujehoxe
Copy link

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..."}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants