Grails-Plugin-Consortium / grails-jesque

1 stars 5 forks source link

Slf4j logging does not work in recurring jobs #22

Open edwardotis opened 7 years ago

edwardotis commented 7 years ago

version 1.2.1 grails 3.1.16

Logging works fine in regular jobs, but is failing silently in recurring jobs.

edwardotis commented 7 years ago

On further testing, error level logging works in recurring jobs. However, that's not the same log level as the other non-recurring jobs.

peh commented 7 years ago

could you provide a sample project to reproduce that? i see info, warn and error logs in our logfiles at this very moment coming from all kinds of jesque jobs.

edwardotis commented 7 years ago

Hi peh,

My logback.groovy was set to just log 'grails.app'. This worked with the non-recurring jobs. logger('grails.app', DEBUG, ['STDOUT'], false)

As a workaround, I added my core package name explicitly to my logback config, and now debug statements are working in the recurring jobs. logger('com.mypackagename', DEBUG, ['STDOUT'], false)