-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Winston colors don't work with docker #616
Comments
I believe it is because it is not a |
One can run a container with a |
Having the same frustration running with forever. # -c Allows me to monitor the logs in terminal, rather than having Forever move them to a file.
forever -vw -c node test.js Output is not a TTY and this disables the color. I'd like the option to overrule this behavior, but I'm not sure if Winston is the one breaking this, or if it's something directly related to the console. Also, piping into |
...and fixed passing --color=always to my program fixes this issue. The issue is not with Winston, but with Marak/colors. That being said, Winston could enable the option with var colors = require("colors");
if(somethingSaysIShouldColor)
colors.enabled = true; If I write a program and manually set
|
thanks @tarwich |
Fixed in #751. Released in |
If you run winston in container (in my case boot2docker OSX), colors get lost.
This doesn't happen with
debug
npm library e.g.The text was updated successfully, but these errors were encountered: