Requesting help on customizing logs


(Eric Francis ) #1

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

From http://www.gradle.org/docs/current/userguide/logging.html 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?


(Eric Francis ) #2

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