clux / loggerv

A minimalistic stdout/stderr logger for rust
https://docs.rs/loggerv
MIT License
21 stars 6 forks source link

ability to force colorizing the output #18

Open jpastuszek opened 5 years ago

jpastuszek commented 5 years ago

When working with Jenkins or SSH colorization stops working due to standard output/error not being a terminal like output. Many terminal programs allow to force colorization of output in case one is used in environment that is not directly attached to terminal but has one attached remotely (e.g. via SSH) or has color codes handled in a special way (e.g. Jenkins plugin). This change adds function allowing to set color to true regardless if logger is used in a terminal or not.