Command prompt doesn't show any exceptions or errors for grails application -
Command prompt doesn't show any exceptions or errors for grails application -
i have grails application.
if there error or exceptions (compile ot run time), cmd prompt shows errors/exceptions. lastly few days cmd prompt doesn't show stacktrace.
so unable figure out problem in code.
debugging literally impossible me.
any help appreciated.
log4j configuration config.groovy
log4j.main = { error 'org.codehaus.groovy.grails.web.servlet', // controllers 'org.codehaus.groovy.grails.web.pages', // gsp 'org.codehaus.groovy.grails.web.sitemesh', // layouts 'org.codehaus.groovy.grails.web.mapping.filter', // url mapping 'org.codehaus.groovy.grails.web.mapping', // url mapping 'org.codehaus.groovy.grails.commons', // core / classloading 'org.codehaus.groovy.grails.plugins', // plugins 'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration 'org.springframework', 'org.hibernate', 'net.sf.ehcache.hibernate' }
config.groovy should have log4j configuration enable errors , exceptions shown on command prompt.
for detailed logging configuration please check these links grails logging , wiki - grails logging.
exception grails stack-trace
Comments
Post a Comment