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

Wrap context-aware handlers + values around loggers by default. #31

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

wlynch
Copy link
Member

@wlynch wlynch commented Jan 23, 2025

Previously, we didn't allowed you to provide any handler you wanted, which didn't quite meet expectations for using clog. This changes the behavior to always wrap the logger with a context handler.

Additionally, when a new logger is created any values present in the context are added to the logger, which should allow the values to be preserved even if the default slog funcs are used.

Previously, we didn't allowed you to provide any handler you wanted,
which didn't quite meet expectations for using clog.
This changes the behavior to always wrap the logger with a context
handler.

Additionally, when a new logger is created any values present in the
context are added to the logger, which should allow the values to be
preserved even if the default slog funcs are used.
@imjasonh imjasonh merged commit 7b8abfe into chainguard-dev:main Jan 24, 2025
3 checks passed
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.

3 participants