业务需要,做一下按日期生成日志文档,log4j配置如下:log4j.rootCategory=info,stdout,logfile..................log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppenderlog4j.appender.logfile.File=./log/log.loglog4j.appender.logfile.datePattern='.'yyyy-MM-dd当天生成的日志...
查看全文