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 for Context only logging #85

Merged
merged 1 commit into from
Mar 31, 2020
Merged

Refactor for Context only logging #85

merged 1 commit into from
Mar 31, 2020

Conversation

ammario
Copy link
Member

@ammario ammario commented Mar 31, 2020

  • Passing tests
  • Pass ci

@ammario ammario requested a review from nhooyr as a code owner March 31, 2020 18:27
@ammario ammario linked an issue Mar 31, 2020 that may be closed by this pull request
README.md Outdated
@@ -87,6 +87,8 @@ Here is a list of reasons how we improved on zap with slog.

1. Full [context.Context](https://blog.golang.org/context) support
- `slog` lets you set fields in a `context.Context` such that any log with the context prints those fields.
- `slog` stores the actual logger in the `context.Context`, following the example of the Go trace library. **Our
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should link to the open census trace godoc.

README.md Outdated
@@ -87,6 +87,8 @@ Here is a list of reasons how we improved on zap with slog.

1. Full [context.Context](https://blog.golang.org/context) support
- `slog` lets you set fields in a `context.Context` such that any log with the context prints those fields.
- `slog` stores the actual logger in the `context.Context`, following the example of the Go trace library. **Our
logger doesn't bloat type and function signatures.**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think this needs to be bolded, it stands out too much.

@ammario ammario merged commit 95bc0f1 into master Mar 31, 2020
@ammario ammario deleted the ctx-log branch March 31, 2020 19:50
nhooyr added a commit that referenced this pull request Apr 9, 2020
This reverts commit 95bc0f1, reversing
changes made to f7a90d8.
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.

Switch API to log via ctx instead of to logger struct
2 participants