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

simplify pkg/log, use slog and clog #1011

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

imjasonh
Copy link
Member

@imjasonh imjasonh commented Jan 11, 2024

This moves toward using https://pkg.go.dev/log/slog, which provides structured logging, levels, groups, and more formatting options, and https://github.com/chainguard-dev/clog for context-aware (s)logging.

This moves --log-policy to a root flag, and removes --debug and --quiet in favor of a --log-level flag.

The output should be identical to the previous logging output, with even more care taken to attribute arch-specific logs using slogctx.

@imjasonh imjasonh marked this pull request as ready for review January 16, 2024 18:26
@imjasonh imjasonh changed the title WIP: simplify pkg/log, use slog simplify pkg/log, use slog and clog Jan 16, 2024
Signed-off-by: Jason Hall <jason@chainguard.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants