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

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

No comments:

Post a Comment