-
Notifications
You must be signed in to change notification settings - Fork 0
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
Verbosity and Logging #19
Conversation
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Signed-off-by: Satu Koskinen <satu.a.koskinen@gmail.com>
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Signed-off-by: Max Winter <maxwinter00@gmail.com>
I found this https://github.com/clap-rs/clap-verbosity-flag which implements standard behaviour for verobosity flag. What do you guys think? |
Ah that should probably work. I personally like the variant with the log level as string more, but i can change it to use this variant if you prefer that. |
Signed-off-by: Max Winter <maxwinter00@gmail.com>
In my opinion |
Alright, then i will try out the clap_verbosity_flag |
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Signed-off-by: Max Winter <maxwinter00@gmail.com>
Implemented the --verbosity command flag and correct logging with log levels.
I had to alter the --verbosity flag a bit. I could not get Clap's parse(from_occurrences) to work correctly.
The log level is no longer increased with -v, -vv, ..., but instead by writing the log level as a String (for example --verbosity debug).