winstonjs/winston

[Feature Request]: Respect NO_COLOR environment variable

wopian opened this issue · 1 comments

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

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.