CompatibilityTaskAction - Option to only log errors
Slav4ik opened this issue · 5 comments
We are running the compatibility test for a large repository of schemas.
The compatibility task creates many "non informative" log lines when schema is compatible.
I'd like to be able to decide if I want to see all logs or only logs for failure.
Specifically these 2 lines:
Hello, thank you for using the plugin.
Could changing the log level globally be a fix for you ? https://docs.gradle.org/current/userguide/logging.html#sec:choosing_a_log_level
Currently it's not possible to change the log level task by task (or even by package like we usually do in Java) see gradle/gradle#1010
Thank you for the great plugin, and for your quick response.
Globally I wouldnt like to turn off log levels as I do want visibility of the whole process.
Maybe a solution in the form of - exposing a configuration in the task, like "verbose" logging?
Given the previous link I think this approach makes sense.
I am currently in holiday so I cannot work on this, if you feel like creating the pull request it would be great, else I will do this in more than two weeks.
I am back !
After reading again your first message it seems that you want to remove the error logs too ?
If so, the verbose
could be set to true
by default (to keep current behavior) and set to false
to disable all the logs messages.
Would it work for you @Slav4ik ?
Edit: Probably better to do it the other way, a quiet
flag.
Available in 1.4.0.