Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slf4j logging does not work in recurring jobs #22

Open
edwardotis opened this issue May 21, 2017 · 3 comments
Open

Slf4j logging does not work in recurring jobs #22

edwardotis opened this issue May 21, 2017 · 3 comments

Comments

@edwardotis
Copy link

edwardotis commented May 21, 2017

version 1.2.1
grails 3.1.16

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

@edwardotis
Copy link
Author

edwardotis commented May 21, 2017

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
Copy link
Contributor

peh commented May 21, 2017

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
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants