Grails 2.4.4 and Tomcat 8.0.20
log4j = {
appenders {
rollingFile name:'w_file', file:"D:\\Program Files\\Apache Software Foundation\\Tomcat 8.0\\logs\\app.jog".toString(), maxFileSize:'10MB'
}
root {
debug 'stdout', 'w_file'
}
debug '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'
}
I've tried a lot of variants of configure. It's latest. I make war by command line: grails war and I see the file 'app.jog' in directory 'D:\Program Files\Apache Software Foundation\Tomcat 8.0\logs' with logging of building. But after deploying this war into tomcat the log doesn't update/create, although the application works properly.