-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no colors when using feature stderr and redirecting stdout #71
Comments
I don't think this is expected. I can't see any reason this would happen - the I can see a potential bug in the code where this might happen on Windows specifically: https://github.com/borntyping/rust-simple_logger/blob/main/src/lib.rs#L463 |
I do get colors when I don't redirect stdout. |
Ah: this does look like it may be a bug in https://docs.rs/colored/latest/src/colored/control.rs.html#108 |
I will open an issue with colored and link to this one. |
Closing this as it looks like it's currently intended behavior on |
When I have the stderr and colors features enabled and redirect just stdout, the colors in my stderr logs are no longer there. If I remove the stderr feature and try redirecting stderr, my stdout logs do have color. Is this expected behavior?
This is on macOS and happens in both iTerm2 and the vs code terminal.
Here is how I pull in simple_logger in Cargo.toml:
simple_logger = { version = "4.0.0", features = ["stderr"] }
The text was updated successfully, but these errors were encountered: