Requesting help on customizing logs

I’m trying to reduce the amount of logging in my build.

From i added the task ‘logInfo’ to my root project’s build.gradle. When running ‘gradle logInfo’, I am not seeing the message printing out with log level info.

task logInfo {

logging.captureStandardOutput LogLevel.INFO

doFirst {

println ‘A task message which is logged at INFO level’

} }

Any thoughts?

Ok, I ran the task with -i and the message came up.