source: trunk/grails-app/conf/Config.groovy @ 290

Last change on this file since 290 was 290, checked in by work@…, 8 years ago

changed log location

File size: 3.3 KB
Line 
1// ##################################################################################
2// DO NOT Change these settings!!!
3// You can overwrite them by adding your own configuration file in ~/.grails/[environment]-[appName].properties
4
5// locations to search for config files that get merged into the main config
6// config files can either be Java properties files or ConfigSlurper scripts
7grails.config.locations = [
8        // the default configuration properties
9        "classpath:default.properties",
10        "file:${ basedir }/grails-app/conf/default.properties", /*<- "run-app" mode */
11
12        // the external configuration to override the default
13        // configuration (e.g. ~/.dbnp/ci-gscf.properties)
14        "file:${userHome}/.dbnp/${grails.util.GrailsUtil.environment}-${appName}.properties",
15]
16
17// Add extra location if desired
18if(System.properties["${appName}.config.location"]) {
19        grails.config.locations << "file:" + System.properties["${appName}.config.location"]
20}
21
22grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination
23grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format
24grails.mime.use.accept.header = false
25grails.mime.types = [html: ['text/html', 'application/xhtml+xml'],
26        xml: ['text/xml', 'application/xml'],
27        text: 'text/plain',
28        js: 'text/javascript',
29        rss: 'application/rss+xml',
30        atom: 'application/atom+xml',
31        css: 'text/css',
32        csv: 'text/csv',
33        all: '*/*',
34        json: ['application/json', 'text/json'],
35        form: 'application/x-www-form-urlencoded',
36        multipartForm: 'multipart/form-data'
37]
38// The default codec used to encode data with ${}
39grails.views.default.codec = "none" // none, html, base64
40grails.views.gsp.encoding = "UTF-8"
41grails.converters.encoding = "UTF-8"
42// enable Sitemesh preprocessing of GSP pages
43grails.views.gsp.sitemesh.preprocess = true
44// scaffolding templates configuration
45grails.scaffolding.templates.domainSuffix = 'Instance'
46
47// Set to false to use the new Grails 1.2 JSONBuilder in the render method
48grails.json.legacy.builder = false
49// enabled native2ascii conversion of i18n properties files
50grails.enable.native2ascii = true
51// whether to install the java.util.logging bridge for sl4j. Disable fo AppEngine!
52grails.logging.jul.usebridge = true
53// packages to include in Spring bean scanning
54grails.spring.bean.packages = []
55
56// log4j configuration
57log4j = {
58        // Example of changing the log pattern for the default console
59        // appender:
60        //
61        //appenders {
62        //    console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
63        //}
64        appenders {
65                rollingFile name: "stacktrace", maxFileSize: 1024, file: "${userHome}/${appName}-${grails.util.GrailsUtil.environment}.log"
66        }
67
68        error 'org.codehaus.groovy.grails.web.servlet',  //  controllers
69                'org.codehaus.groovy.grails.web.pages', //  GSP
70                'org.codehaus.groovy.grails.web.sitemesh', //  layouts
71                'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
72                'org.codehaus.groovy.grails.web.mapping', // URL mapping
73                'org.codehaus.groovy.grails.commons', // core / classloading
74                'org.codehaus.groovy.grails.plugins', // plugins
75                'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
76                'org.springframework',
77                'org.hibernate',
78                'net.sf.ehcache.hibernate'
79
80        warn 'org.mortbay.log'
81}
82
83// jquery plugin
84grails.views.javascript.library = "jquery"
Note: See TracBrowser for help on using the repository browser.