How do I change the logging level using testLogging?

I’m using Junit & Concordion. In our tests we write out some info level messages into the log (using java.util.logging.Logger) to monitor B2B tests while developing them. In jenkins I want to skip these messages so keep the console logs small and relevant.

We are using gradle 1.6.

Current file: test {

include ‘**/IndexTest.*’

systemProperties[‘concordion.output.dir’] = “$reporting.baseDir/acceptance/”

outputs.upToDateWhen { false } // Force-run Selenium

logging.level = LogLevel.LIFECYCLE

testLogging.showStandardStreams = true

testLogging.showExceptions = true }

As far as I know, Java util logging in a test JVM isn’t redirected into Gradle’s logging system. Instead, ‘testLogging.showStandardStreams = true’ may be picking it up from std out. I’d try to put in place a Java util logging configuration file for your tests.