Skip to content

Replace logrus with standard library log/slog #126

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

Open
philippgille opened this issue Apr 5, 2025 · 0 comments
Open

Replace logrus with standard library log/slog #126

philippgille opened this issue Apr 5, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@philippgille
Copy link

Describe the feature or problem you’d like to solve

Hi 👋 , I checked the dependencies and noticed that it's a fairly short list of direct dependencies already 💪 .

But with the introduction of the log/slog package in the Go standard library in Go 1.21 in 2023, there's a way to do structured logging without a third party dependency, so the number of direct dependencies could be reduced even further. As long as no specific logrus features or conveniences are required, could it make sense to migrate to slog?

Proposed solution

Migrate from third party library github.com/sirupsen/logrus to standard library log/slog.

Benefit: One less direct dependency (and thus lower supply chain risk, less maintenance burden for updates, maybe quicker build times)

Additional context

@philippgille philippgille added the enhancement New feature or request label Apr 5, 2025
@philippgille philippgille changed the title Replace logrus with stdlib log/slog Replace logrus with standard library log/slog Apr 5, 2025
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

1 participant