-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Add different verbosity levels #824
Conversation
More granular verbosity levels have been asked for repeatedly. To enable that we're moving to [env_logger] and [clap-verbosity-flag] to provide more flexible verbosity settings. Also tackles #661, #709 Lays the groundwork for tackling #268 https://github.com/rust-cli/env_logger https://github.com/clap-rs/clap-verbosity-flag
If someone finds the time I'd love to get a review to avoid regressions. |
Is there some brief explanation somewhere? Which information do the various level add (v) or remove (q)? |
At the moment it's pretty basic:
That's it. |
Hmm, but what will Edit: I found some helpful comments in the code that have some more information: https://github.com/lycheeverse/lychee/blob/master/lychee-bin/src/verbosity.rs#L41-L46 Ordinary users won't read the code. :) |
So far this is not used, but reserved for future use-cases. It is already supported by the crate we use for checking verbosity, so it was no extra work to include it.
That's fair. I'm willing to accept pull requests to help increase the clarity. Would you be interested? Alternatively we could write something about it on the website. |
Thanks for your quick reply. |
More granular verbosity levels have been asked
for repeatedly.
To enable that we're moving to [env_logger] and [clap-verbosity-flag]
to provide more flexible verbosity settings.
Also tackles #661, #709.
Lays the groundwork for tackling #268 and #704.
https://github.com/rust-cli/env_logger
https://github.com/clap-rs/clap-verbosity-flag