added ability for console logs to only output when grails is not in production mode