logging - How to use Gradle Logger? -


import org.gradle.api.logging.logger

import org.gradle.api.logging.logging

in spock test

package com.example.dummies

import org.gradle.api.logging.logger

import org.gradle.api.logging.logging

import spock.lang.specification

class dummyclasstest extends specification {

file dir = new file("c:/users/results") dummyclass var logger log   def setup() {     log = logging.getlogger(dummyclasstest.class)     var= new dummyclass(dir) }  def ' test'() {     log.info("--------------------------------------------------->hi")  expect:  var.gettdir() == dir } } 

my test passes when write

gradle test -i

but message not in console output. problem?


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -