tags:

views:

55

answers:

0

I have a project using the Grails 1.1.1 application framework, and when I run grails test-app I am getting some odd results. I have a function that logs output at the INFO level, and another function using println. I have both a unit test and an integration test that access these two functions. When I look at the generated test report, I can see both System.out and System.err. For the unit test, both the println output and the log.info output appears in System.out. For the integration test, the println output remains in System.out, but the log.info output appears in System.err instead. How can I make it so that logging goes to System.out as well? Is there a change I can make in Config.groovy to make this happen? The only change I've made to the logging config beyond what is autogenerated at project creation is to add:

root {
  info 'stdout'
}

Adding or removing this config option doesn't change my results. Can anyone point me in the right direction?