Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Replace Zerolog with Go's slog #122

@dstpierre

Description

@dstpierre

Now that Go has its own structure logger, we can drop the dependency on Zerolog and use Go's slog instead.

I think the quikest way to do this is by removing all import of zerolog.

Might be a good opportunity to maybe get rid of all logger pass around and simply use the global slog after configuring it based on the environment variables already used to Zerolog.

Couple of pointer for this tasks:

  • Exploration / reflection on if we should continue to pass a logger around, as slog has a sharable global instance.
  • Removing the logger field on structure and function protytope and building / fixing issue seems a good way to do this.
  • Doing a global search for zerolog's logger type and either removing or changing type based on exploration results.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions