log4j in grails : how to log into file?

前端 未结 3 1298
Happy的楠姐
Happy的楠姐 2021-02-09 10:45

I have this log4j configuration in my grails config.groovy

log4j = {
    error  \'org.codehaus.groovy.grails.web.servlet\',  //  controllers
                   \         


        
3条回答
  •  南方客
    南方客 (楼主)
    2021-02-09 10:56

    please see Log4j: How to write to a specific appender?

    After all the solution is to put the additivity setting to the package configuration:

    info specialLog:'activityLog', additivity:false

提交回复
热议问题