Changeset 622 for trunk/grails-app/conf/Config.groovy
- Timestamp:
- Jul 10, 2010, 10:48:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/Config.groovy
r608 r622 49 49 grails.spring.bean.packages = [] 50 50 51 /** 52 * Internal searchable index config. 53 */ 54 // Is set true by createDataService.startSearchableIndex() once bootstrap completes. 55 appSearchable.cascadeOnUpdate = false 56 57 /** 58 * Directory configuration. 59 * Pickup the Tomcat/Catalina directory else use the target or current dir. 60 */ 61 def fs = File.separator // Local variable. 62 globalDirs.targetDir = new File("target${fs}").isDirectory() ? "target${fs}" : '' 63 globalDirs.catalinaBase = System.properties.getProperty('catalina.base') 64 globalDirs.logDirectory = globalDirs.catalinaBase ? "${globalDirs.catalinaBase}${fs}logs${fs}" : globalDirs.targetDir 65 globalDirs.workDirectory = globalDirs.catalinaBase ? "${globalDirs.catalinaBase}${fs}work${fs}" : globalDirs.targetDir 66 globalDirs.searchableIndexDirectory = "${globalDirs.workDirectory}SearchableIndex${fs}${appName}${fs}" 51 67 52 68 /** … … 58 74 * Basic log levels are ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < OFF 59 75 */ 60 // Pickup the Tomcat/Catalina work directory else use the current or temp dir.61 def catalinaBase = System.properties.getProperty('catalina.base')62 def fs = File.separator63 def logDirectory = catalinaBase ? "${catalinaBase}${fs}logs${fs}" : ''64 76 65 77 log4j = { … … 73 85 // Custom log file. 74 86 rollingFile name:"appLog", 75 file:"${ logDirectory}${appName}.log".toString(),87 file:"${globalDirs.logDirectory}${appName}.log".toString(), 76 88 maxFileSize:'300kB', 77 89 maxBackupIndex:1, … … 99 111 error 'grails.app.service.NavigationService' 100 112 error 'grails.app.service.com.zeddware.grails.plugins.filterpane.FilterService' 113 info 'org.codehaus.groovy.grails.plugins.searchable' 114 //info 'org.compass' 101 115 error 'grails.app.task' // Quartz jobs. 102 info 'grails.app.task.Inventory ReindexJob'116 info 'grails.app.task.InventoryIndexJob' 103 117 104 118 // Move anything that should behave differently into this section.
Note: See TracChangeset
for help on using the changeset viewer.