#按日期生成新文件:
log4j.appender.WorkflowLogger=org.apache.log4j.DailyRollingFileAppender
log4j.appender.WorkflowLogger.file=。WorkflowLog.log
log4j.appender.WorkflowLogger.DatePattern='.'yyyy-MM-dd
log4j.appender.WorkflowLogger.layout=org.apache.log4j.PatternLayout
log4j.appender.WorkflowLogger.layout.ConversionPattern=[%-5p]%n%d{ISO8601}%nStackTrace : %l%n***********************%n%m%n***********************%n%n
#按文件大小生成新文件:
log4j.appender.WorkflowLogger=org.apache.log4j.RollingFileAppender
log4j.appender.WorkflowLogger.Threshold=ERROR
log4j.appender.WorkflowLogger.File=。WorkflowLog.log
log4j.appender.WorkflowLogger.Append=true
log4j.appender.WorkflowLogger.MaxFileSize=100MB
log4j.appender.WorkflowLogger.MaxBackupIndex=10
log4j.appender.WorkflowLogger.layout=org.apache.log4j.PatternLayout
log4j.appender.WorkflowLogger.layout.ConversionPattern=[%-5p]%n%d{ISO8601}%nStackTrace : %l%n***********************%n%m%n***********************%n%n