I have a custom plugin and some of all unit tests output DEBUG level logging for all parts of gradle system and dependencies. My SOAP tests display axis debug logging. My tests which fetch dependencies show debug level details of that.
I’d like my classes to be debug log and others to be at info. I’d like to exclude org.apache.* classes from the log for example.
I experimented with displayGranularity but haven’t seen much of a change.
test {
testLogging {
displayGranularity 2
events "failed"
exceptionFormat "short"
debug {
}
}
}
Can someone direct me to docs on tuning logging when running junit unit tests via gradle? Thanks
Peter