Skip to content

Commit

Permalink
Removed env vars in config.groovy and added logging code.
Browse files Browse the repository at this point in the history
git-svn-id: http://ala-hubs.googlecode.com/svn/trunk/generic-hub@1498 1df052cb-f7c2-36cd-ec53-7bc1070de0c5
  • Loading branch information
nickdos committed Jun 5, 2014
1 parent c9a4dca commit b4b5298
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions grails-app/conf/Config.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,22 @@ grails.hibernate.cache.queries = false

environments {
development {
grails.serverURL = 'http://dev.ala.org.au:8080/' + appName
serverName='http://dev.ala.org.au:8080'
security.cas.appServerName = serverName
security.cas.contextPath = "/${appName}"
//grails.resources.debug = true // cache & resources plugins
// grails.serverURL = 'http://dev.ala.org.au:8080/' + appName
// serverName='http://dev.ala.org.au:8080'
// security.cas.appServerName = serverName
// security.cas.contextPath = "/${appName}"
grails.resources.debug = true // cache & resources plugins
}
test {
grails.serverURL = 'http://biocache-test.ala.org.au'
serverName='http://biocache-test.ala.org.au'
security.cas.appServerName = serverName
// grails.serverURL = 'http://biocache-test.ala.org.au'
// serverName='http://biocache-test.ala.org.au'
// security.cas.appServerName = serverName
//security.cas.contextPath = "/${appName}"
}
production {
grails.serverURL = 'http://biocache.ala.org.au'
serverName='http://biocache.ala.org.au'
security.cas.appServerName = serverName
// grails.serverURL = 'http://biocache.ala.org.au'
// serverName='http://biocache.ala.org.au'
// security.cas.appServerName = serverName
}
}

Expand All @@ -141,7 +141,21 @@ log4j = {
// Example of changing the log pattern for the default console appender:
//
appenders {
console name:'stdout', layout:pattern(conversionPattern: "%d %-5p [%c{1}] %m%n")
environments {
production {
// rollingFile name: "tomcatLog", maxFileSize: 102400000, file: "/var/log/tomcat6/${appName}.log", threshold: org.apache.log4j.Level.ERROR, layout: pattern(conversionPattern: "%d %-5p [%c{1}] %m%n")
// 'null' name: "stacktrace"
console name: "stdout", layout: pattern(conversionPattern: "%d %-5p [%c{1}] %m%n"), threshold: org.apache.log4j.Level.WARN
}
development {
console name: "stdout", layout: pattern(conversionPattern: "%d %-5p [%c{1}] %m%n"), threshold: org.apache.log4j.Level.DEBUG
}
test {
// rollingFile name: "tomcatLog", maxFileSize: 102400000, file: "/tmp/${appName}-test.log", threshold: org.apache.log4j.Level.DEBUG, layout: pattern(conversionPattern: "%d %-5p [%c{1}] %m%n")
// 'null' name: "stacktrace"
console name: "stdout", layout: pattern(conversionPattern: "%d %-5p [%c{1}] %m%n"), threshold: org.apache.log4j.Level.INFO
}
}
}

root {
Expand All @@ -162,7 +176,8 @@ log4j = {
info 'grails.app'
debug 'grails.app.controllers',
'grails.app.services',
//'grails.app.taglib',
//'grails.app.taglib',
'grails.web.pages',
//'grails.app',
'au.org.ala.cas',
'au.org.ala.biocache.hubs',
Expand Down

0 comments on commit b4b5298

Please sign in to comment.