dtdh.net
当前位置:首页 >> logging.pAttErn.FilE >>

logging.pAttErn.FilE

log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.File=backup.log log4j.appender.R.DatePattern = '.'yyyy-MM-dd log4j...

详细介绍看这里:http://blog.csdn.net/mars199/article/details/6669232

apache.log4j.PatternLayoutlog4j.appender.R.layout.ConversionPattern=%d{yyyy-MM....DailyRollingFileAppenderlog4j.appender.D.File = logs/log.loglog4j.appender....

14 log4j.appender.A1.File=C:/log4j/log 15 log4j.appender.A1.Encoding=GBK 16 log4j.appender.A1.Threshold=DEBUG 17 log4j.appender.A1.DatePattern='.'...

apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d-[...log4j.appender.R1.File=${webApp.root}\WEB-INF\classes\logs/log.log如果...

log4j.appender.D.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss, SSS}} [ %t:%r ] - [ %p ] %m%n

E:\logs\log.log (系统找不到指定的路径。)

同样的问题,你是不是把日志文件删了。 log4j:ERROR Either File or DatePattern options are not set for appender [remotingLogFile]. log4j:ERROR No output stream or file set for the appender named [remotingLogFile].

之所以会只输出日期,是因为log4j.appender.logfile.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss}你这里就是这么配置的,改成这样看看呢log4j....

log4j.appender.A1=org.apache.log4j.DailyRollingFileAppenderlog4j.appender.A1.File=F:/mylog.txtlog4j.appender.A1.layout=org.apache.log4j.PatternLayout#%...

网站首页 | 网站地图
All rights reserved Powered by www.dtdh.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com