Skip to content

Best way to enable ansi formatting for terminal output only #2640

Discussion options

You must be logged in to vote

Sorry for the delay. What you wrote is generally the correct approach, and while we'd like to make tracing_subscriber::fmt call std::io::stdout().is_terminal(), we can't due to our current MSRV.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aaronriekenberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants