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

refactor: migrate from zap logger to log/slog #6451

Closed
knqyf263 opened this issue Apr 3, 2024 · 0 comments
Closed

refactor: migrate from zap logger to log/slog #6451

knqyf263 opened this issue Apr 3, 2024 · 0 comments
Assignees
Milestone

Comments

@knqyf263
Copy link
Collaborator

knqyf263 commented Apr 3, 2024

Description

Currently, we are using the zap library for logging in Trivy. However, to align with more standards, we have decided to migrate to the built-in log/slog package.

Since slog.Handler is an interface, projects that import and use Trivy can still utilize custom loggers. Although zap has better performance, it is not expected to be an issue for Trivy, as it does not output a large volume of logs.

@knqyf263 knqyf263 added this to the v0.51.0 milestone Apr 3, 2024
@knqyf263 knqyf263 self-assigned this Apr 3, 2024
@knqyf263 knqyf263 changed the title refactor: migrate from zap logger to standard log/slog refactor: migrate from zap logger to log/slog Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant