root(ERROR, ['STDOUT']) // Sets log level of all logger('grails.app.controllers.com.myapp', DEBUG, ['STDOUT'], false) // Turn on debug for all your controllers logger('grails.app.services.com.myapp', DEBUG, ['STDOUT'], false) // Turn on debug for all your services
Code Snippets, Ideas and Rants from a Tech Lead interested primarily in server side web development and leading teams who build web apps.
Sunday, September 11, 2016
Grails logging debug from your controller logback.groovy
To get your controllers and services logging debug messages edit your logback.groovy. Just add your package structure, for instance if your package structure was com.myapp
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment