-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
not print color log when go version is 1.10/1.11 #1547
Comments
|
ping @mattn @thesyncim thanks |
I didn't change anything for mac. (as far as I remember) |
@mattn thank you for yourreply. |
I got colors on macOS High Sierra and now Mojave. I only lose colors when running gin (i.e. |
@thinkerou will you be able to pick it, otherwise, I would love to help. |
@kamronbatman welcome |
Add a function `ForceConsoleColor`, like `DisableConsoleColor` but to force coloring the output. It usefull when some IDE's integrated console (like IntelliJ or Goland) are not detected as TTY, but can display colors. Also helps if one want to output color in log file (#1590) and as a workaround for #1547.
With issues:
go version: go 1.11
gin version (or commit ref): master
operating system: mac
Description
Here can see go 1.8 1.9 1.10 1.11 print log: https://travis-ci.org/gin-gonic/gin/builds/428455260?utm_source=github_status&utm_medium=notification
when go version is 1.9 it will print log:
else print log:
Screenshots
The text was updated successfully, but these errors were encountered: