You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
Varunram
changed the title
[Question] Preserving colors after setting otuput
[Question] Preserving colors after setting output
Jul 20, 2018
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.
Right now, setting output to
os.Stderr
usinglog.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!The text was updated successfully, but these errors were encountered: