This was also needed in Grails 3. Found this post by mrhaki:
entry in grails 3
I tested this on quartz work. I added the following line to logback.groovy
logger("grails.app.jobs", INFO, ['STDOUT'])
Using the test log in a quartz job:
log.info "test " + new Date()
shows log information in the console
INFO grails.app.jobs.myapp.TestJob - test Tue Oct 20 10:07:31 CEST 2015
A funny thing is happening. I see two repeating lines for each log.info
log.info "test" log.info "test2" System.out.println("test"3)
Gives me:
INFO grails.app.jobs.myapp.TestJob - test INFO grails.app.jobs.myapp.TestJob - test INFO grails.app.jobs.myapp.TestJob - test2 INFO grails.app.jobs.myapp.TestJob - test2 test3
Guus
source share