Skip to content

Tee #87

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

Closed
wants to merge 2 commits into from
Closed

Tee #87

wants to merge 2 commits into from

Conversation

ammario
Copy link
Member

@ammario ammario commented Mar 31, 2020

No description provided.

ammario added 2 commits March 31, 2020 16:27
It accepts contexts so it's useable down the stack.
@ammario ammario requested a review from nhooyr as a code owner March 31, 2020 22:13
@ammario
Copy link
Member Author

ammario commented Mar 31, 2020

@nhooyr review this carefully

@@ -3,19 +3,13 @@ module cdr.dev/slog/v2
go 1.13

require (
cdr.dev/slog v1.3.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't be here.


// Tee creates a logger that writes logs to the passed sinks at LevelInfo.
// The first context is preserved in the return.
func Tee(ctx context.Context, ctxs ...context.Context) context.Context {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure how I feel about this anymore.

@nhooyr
Copy link
Contributor

nhooyr commented Apr 9, 2020

See #89

@nhooyr nhooyr closed this Apr 9, 2020
@nhooyr nhooyr deleted the tee branch April 9, 2020 08:13
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.

2 participants