Configuring the log level at the task level


(Don Henry) #1

I’m using some tasks in a plugin that output log messages at the INFO level. I want to output these messages and can, of course, do so by specifying “–info” on the command line. The problem is this will cause the entire gradle run to be at this log level and I’ll get INFO output from gradle and all the other tasks that are executed.

What I’m looking for is a way (maybe within the build.gradle?) to change the configuration of the desired tasks so that they run in INFO mode. That way a gradle run in QUIET mode (with no log level specified on the command line) will output these INFO messages for the desired tasks.

Possible?