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 #2061

Closed
wopian opened this issue Feb 7, 2022 · 1 comment
Closed

[Feature Request]: Respect NO_COLOR environment variable #2061

wopian opened this issue Feb 7, 2022 · 1 comment
Labels
Feature Request Request for new functionality to support use cases not already covered Needs Investigation

Comments

@wopian
Copy link

wopian commented Feb 7, 2022

The problem

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.

Use case

No response

Additional information

No response

@wopian wopian added Feature Request Request for new functionality to support use cases not already covered Needs Investigation labels Feb 7, 2022
@maverick1872
Copy link
Member

maverick1872 commented Feb 9, 2022

This is a feature request for the colorize format that can be found here. As such this should be a feature request on that repository. We also welcome any PR you feel like opening implementing the necessary env checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Request for new functionality to support use cases not already covered Needs Investigation
Projects
None yet
Development

No branches or pull requests

2 participants