Skip to content

Switch to an vendor neutral logger interface or stdlib slog logging #2368

@jkroepke

Description

@jkroepke

hcsshim currently uses logrus to implement its own logging interface. This approach is counterintuitive when hcsshim is used as a library.

As a library consumer, I would prefer the ability to inject my own logging system. In my case, I am using log/slog from the standard library.

Adopting a stdlib logger as the standard might be a better idea, as other loggers can provide adapters for compatibility. For example, slog-zap demonstrates how such adapters can be implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions