Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何禁用Hibernate缓存日志?_Hibernate_Grails_Log4j - Fatal编程技术网

如何禁用Hibernate缓存日志?

如何禁用Hibernate缓存日志?,hibernate,grails,log4j,Hibernate,Grails,Log4j,我的Grails应用程序日志中充斥着成千上万条消息,如: 2010-05-21 18:54:08,261 [30462143@qtp-19943008-38] DEBUG hibernate.EhCache - key: ga_event value: 5220206380077056 这是我的log4j配置: // log4j configuration log4j = { // Example of changing the log pattern for the default

我的Grails应用程序日志中充斥着成千上万条消息,如:

2010-05-21 18:54:08,261 [30462143@qtp-19943008-38] DEBUG hibernate.EhCache  - key: ga_event value: 5220206380077056
这是我的log4j配置:

// log4j configuration
log4j = {
    // Example of changing the log pattern for the default console
    // appender:
    //
    appenders {
        console name:'stdout',layout:pattern(conversionPattern: '%c{2} %m%n')
        rollingFile name:'applog', file: logDirectory+"/${appName}_main.log", maxFileSize:'10MB'
        //'null' name:'stacktrace'
        file name: 'stacktrace', file: logDirectory+"/${appName}_stacktrace.log", layout: pattern(conversionPattern: '%c{2} %m%n')
    }

    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
           'org.codehaus.groovy.grails.plugins', // plugins
           'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
           'org.springframework',
           'org.hibernate',
           stacktrace: "stacktrace"

    warn   'org.mortbay.log'

    root {
        debug 'stdout', 'applog'
        additivity = true
    }
}
你知道如何禁用那个日志吗


干杯

尝试添加到错误块
net.sf.ehcache
尝试添加到错误块
net.sf.ehcache