-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
using a custom logger results in cli_colors having no effect #1712
Comments
You are using a custom logger which means that Rocket doesn't touch logging. If you remove your logger, you'll see colors go away. The default is with coloring enabled. So, this is working as expected: It's tricky. On the one hand, if we're not using Rocket's logger, it seems we should disable coloring. Or if the I'm inclined to suggest that, barring the massive revamp of logging in #21, we probably should disable coloring even if Rocket's logger is being used if |
I have implemented an approach that resolves this issue. I need to polish a few more changes before merging this one but will do so soon. |
Correctly, I am using log4rs. log4rs = { version = "1.0.0", features = ["gzip"] } |
Hi,
I use Rocket configuration programatically:
Cargo.toml:
rocket = { version = "0.5.0-rc.1", features = ["tls", "json"] }
OS:
Linux 5.8.0-55-generic #62~20.04.1-Ubuntu
Rustup:
stable-x86_64-unknown-linux-gnu (default)
rustc 1.51.0 (2fd73fabe 2021-03-23)
The log show me that the CLI_COLORS is set correctly.
The text was updated successfully, but these errors were encountered: