关于grails log4j配置

kevin_xu 2009-11-14
本意是想 特定的类 调用定义好的myTest1 Logger
private static final Logger log1 = Logger.getLogger("myTest1")

想了解一下 grails环境下logging 配置
//  logger.myTest1  "INFO,test1"
//  appender.test1 "org.apache.log4j.FileAppender"
//  appender.test1.fileName "D://Projects//cbs2//log//domain//domain.log"
//  appender.test1.layout "org.apache.log4j.PatternLayout"
//  appender.test1.layout.pattern "%m%n"
在grails config.groovy下如何配置?
helian 2009-11-15
log4j = {
	appenders {
		file name:"test1", maxFileSize:1024, fileName:"D://Projects//cbs2//log//domain//domain.log", layout:"rg.apache.log4j.PatternLayout", pattern :"%m%n"
	}

        info test1 "myTest1"

}

Global site tag (gtag.js) - Google Analytics