Skip to content

Replace logrus with standard library log/slog #126

Open
@philippgille

Description

@philippgille

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions