Skip to content

Comments

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

Merged
ChrisHines merged 1 commit intomasterfrom
fdsync
Mar 22, 2017
Merged

log: Update NewSyncWriter to work with term.IsTerminal.#501
ChrisHines merged 1 commit intomasterfrom
fdsync

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