Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd color support to env_logger #37
Comments
This comment has been minimized.
This comment has been minimized.
FredrikNoren
commented
Nov 29, 2015
|
|
This comment has been minimized.
This comment has been minimized.
calebmer
commented
Mar 22, 2016
|
Color support along the lines of |
This comment has been minimized.
This comment has been minimized.
antoyo
commented
May 9, 2017
|
The |
This comment has been minimized.
This comment has been minimized.
|
We've got sebasmagri/env_logger#2 in |
KodrAus
closed this
Sep 24, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lfairy commentedApr 14, 2015
On Unix, we can use the
ansi_termcrate or roll our own. I'm not sure how it works on Windows; we can just skip colors there for now.As for configuration: we can add a new environment variable
RUST_LOG_COLOR. It will take the valuesnever,always, orauto(default). Ifauto, the logger will use color only when stderr is connected to a terminal.