Disable log colors when not connected to a terminal
Open
component/logger
focus/experience
model/change
progress/0.0
size/0.25
track/ready
value/0.5
- Dominant language
- Rust
- Stars
- 147
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
One more issue I can think off is undesired colored logs in standard output: by default logs in terminal are colored, we can toggle color support with enviroment variable NO_COLOR. But when I redirect torchbear command to a file (or a subprocess like in pipeline above) the colored logs will make it trough and reside in file.
You can test it with simple init.lua, which will raise a colored error:
#yyy
Run it like this:
$ torchbear init.lua > out.log && less out.log
The out.log will contain the escape sequences. I guess it is wrong behaviour.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.