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

[Feature Request]: Respect NO_COLOR environment variable #143

Open
wopian opened this issue Feb 9, 2022 · 1 comment
Open

[Feature Request]: Respect NO_COLOR environment variable #143

wopian opened this issue Feb 9, 2022 · 1 comment

Comments

@wopian
Copy link

wopian commented Feb 9, 2022

Winston outputs logs with colours when format.colorize(...) is used regardless of whether the environment it is running in wants to receive ANSI escape codes in its log output or not.

NO_COLOR (see https://no-color.org/) is a well established environment variable for checking whether to colourise output.

Moved from winstonjs/winston#2061

@maverick1872
Copy link
Member

Thanks for moving this here! Helps us with housekeeping. If you're up for opening a PR for this we'd greatly appreciate it and I'll be happy to give it a review promptly if you request my review!

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

No branches or pull requests

2 participants