Grails logging not working -


i'm developing grails 2.3.4 application , had logging problems. actually, couldn't configure logging @ (accordingly http://grails.org/doc/latest/guide/conf.html#logging) - had no output result.

after brainstorming figured out, grails documentation configs not working project. nevertheless, configs variation worked fine (i saw result on screen):

log4j = {  appenders {     console name:'stdout', layout:pattern(conversionpattern: '%c{2} %m%n') }  root {     error 'stdout'     additivity = true }  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'  debug stdout: ['edu.dm'] 

}

the configs like:

debug stdout: ['grails.app.services', 'grails.app.services.edu'] debug stdout: ['grails.app.controllers', 'grails.app.controllers.edu'] 

failed.

i extremely thankful, if explain mistakes or share link explanation. whole project can found here: https://github.com/alexdavljatov/edudm/tree/master/loggingminiproject

many in advance.

kind regards, alexander davliatov.

start this:

log4j = {     root {         debug()     } } 

you should lot of logging console. (if works), try this:

log4j = {     info "grails.app" } 

among output should see log.info controllers , services. add config.

don't forget restart between changes in config.groovy.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -