winstonjs/logform

[Feature Request]: Respect NO_COLOR environment variable

wopian opened this issue · 1 comments

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

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!