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

[Question] Preserving colors after setting output #793

Closed
Varunram opened this issue Jul 20, 2018 · 3 comments
Closed

[Question] Preserving colors after setting output #793

Varunram opened this issue Jul 20, 2018 · 3 comments

Comments

@Varunram
Copy link

Right now, setting output to os.Stderr using log.SetOutput(io.MultiWriter(os.Stderr), logfile) resets the colors and stuff printed to the command line, is there any way to print colors in the command line and at the same time, write to a log file? Any help much appreciated, thanks!

@Varunram Varunram changed the title [Question] Preserving colors after setting otuput [Question] Preserving colors after setting output Jul 20, 2018
@samsamm777
Copy link

👍 I'm having this very same issue. Any guidance would be appreciated.

@richpoirier
Copy link
Collaborator

See #780 and #784.

@stale
Copy link

stale bot commented Feb 26, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 26, 2020
@stale stale bot closed this as completed Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants