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

Consider migration from ZeroLog to slog #1064

Open
2 of 3 tasks
dadrus opened this issue Nov 23, 2023 · 0 comments
Open
2 of 3 tasks

Consider migration from ZeroLog to slog #1064

dadrus opened this issue Nov 23, 2023 · 0 comments
Labels
Milestone

Comments

@dadrus
Copy link
Owner

dadrus commented Nov 23, 2023

Preflight checklist

Describe the background of your feature request

Until recently, there was no logging framework shipped with the go language. zerolog, used by heimdall is most probably the fastest one out there. Even it allows creation of structured log events, there are some limitations:

  1. The possible structure is flat. Adhering to e.g. the OpenTelemetry Data Model might be impossible.
    In the meantime, there is a way to achieve more sophisticated structured logging using sub-dictionary
  2. There is no possibility to define custom log levels, e.g. to have an ACCESS log level or similar, allowing for better filtering of log events emitted by heimdall.

Describe your idea

The new slog package introduced with go 1.23 supports not only those use cases, currently used by heimdall to emit log events, but also those, where zerolog is limited.

Even slog seems to be slower compared to zerolog, it is expected to be much more prominent in the future and also easier to integrate with logging interfaces used in existing packages via adapters.

For these reasons, migration to slog should be considered.

Are there any workarounds or alternatives?

stay with zerolog

Version

v0.11.1-alpha

Additional Context

No response

@dadrus dadrus added the enhancement New feature or request label Nov 23, 2023
@dadrus dadrus added this to the v0.13.0-alpha milestone Nov 23, 2023
@dadrus dadrus added the research label Dec 4, 2023
@dadrus dadrus changed the title Migrate from ZeroLog to slog Consider migration from ZeroLog to slog Dec 5, 2023
@dadrus dadrus removed the enhancement New feature or request label Dec 5, 2023
@dadrus dadrus modified the milestones: v0.13.0-alpha, v0.14.0-alpha Jan 3, 2024
@dadrus dadrus modified the milestones: v0.14.0-alpha, next, Future Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant