-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
RUST_LOG and RUST_LOG_STYLE support #1295
Comments
There are no traces in Cast, I think. As for |
I had TERM=text and a couple of others trying to remember what terminfo name has no color, but I see in that link that "dumb" should work. Strangely, setting TERM=dumb also has no effect on colorization. |
this is env_logger but we log via https://github.com/tokio-rs/tracing and I'm not sure if their env filter supports that |
Right, so we should likely use https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/struct.Layer.html#method.set_ansi - perhaps we can tie that in with some general color detection util that checks |
Hey, just adding this here since it's a nit in the logging crate. If when you look at logging in general maybe you can emit a better error that at least mentions the RUST_LOG variable (or that the error is in regards to logging).
|
That error is from the logging crate itself, so it's not something we can fix here :/ |
Fair enough, but since you are using the package, you could avoid this weird edge case by doing: "if(env(RUST_LOG)=="")deleteEnv("RUST_LOG");" Happy to submit an issue to them point me to the crate's project. |
disabling colored logs in now possible since #1450 via |
Component
Forge
Describe the feature you would like
RUST_LOG_STYLE=never seems to have no effect on forge, making it difficult to post logs without ansi codes. RUST_LOG=trace seems to have no effect on cast.
Additional context
No response
The text was updated successfully, but these errors were encountered: