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

log: Update NewSyncWriter to work with term.IsTerminal. #501

Merged
merged 1 commit into from
Mar 22, 2017
Merged

Conversation

ChrisHines
Copy link
Member

  • Change the return type to io.Writer
  • Return an io.Writer that also has the Fd() uintptr method of the
    wrapped io.Writer if present.

Fixes #483 as an alternate approach to #482.

What do you think of this approach @ereOn & @peterbourgon?

@peterbourgon
Copy link
Member

I like the approach.

@ereOn
Copy link

ereOn commented Mar 22, 2017

@ChrisHines I like it too.

- Change the return type to io.Writer
- Return an io.Writer that also has the `Fd() uintptr` method of the
  wrapped io.Writer if present.
@ChrisHines ChrisHines merged commit cdd47ca into master Mar 22, 2017
@ChrisHines ChrisHines deleted the fdsync branch March 22, 2017 23:21
jamesgist pushed a commit to jamesgist/kit that referenced this pull request Nov 1, 2024
log: Update NewSyncWriter to work with term.IsTerminal.
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