Skip to content

Instantly share code, notes, and snippets.

@3gcodes
Created August 10, 2010 20:42
Show Gist options
  • Save 3gcodes/517964 to your computer and use it in GitHub Desktop.
Save 3gcodes/517964 to your computer and use it in GitHub Desktop.
def logDirectory = "${thb.settings.thbHome}/logs"
log4j = {
appenders {
file name: "file", threshold: Level.ERROR, file: "${logDirectory}/${appName}-error.log".toString()
file name: "infoFile", threshold: Level.INFO, file: "${logDirectory}/${appName}-info.log".toString()
console name: "stdout", threshold: Level.DEBUG
}
root {
error 'file'
info 'infoFile'
debug '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
stdout: 'org.codehaus.groovy.grails.plugins', // plugins
'org.codehaus.groovy.grails.orm.hibernate', //hibernate integration
'org.springframework',
'org.hibernate',
'com.wbr.highbar'
warn 'org.mortbay.log'
debug 'com.wbr.highbar'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment