标签:文件 com roo value category nbsp 日志 apache append
<settings> <setting name="logImpl" value="LOG4J"/> </settings>
#ERROR防止转入过多无用日志,方便调试
log4j.rootCategory=ERROR,CONSOLE,LOGFILE
#mapper包=DEBUG
log4j.logger.com.airplane.mapper=DEBUG
#log4j.logger.com.bjsxt.service.impl=debug,CONSOLE,LOGFILE
#log4j.logger.com.bjsxt.service.impl.EmpServiceImpl=INFO,CONSOLE,LOGFILE
#log4j.logger.com.bjsxt.service.impl.EmpServiceImpl.inserEmpInfo=ERROR,CONSOLE,LOGFILE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=-%m%n
log4j.appender.LOGFILE=org.apache.log4j.FileAppender
log4j.appender.LOGFILE.File=D:/axis.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=-%p-%d{yyyy/MM/dd HH:mm:ss,SSS}-%l-%L-%m%n
标签:文件 com roo value category nbsp 日志 apache append
原文地址:https://www.cnblogs.com/lastingjava/p/9976986.html