我在classpath中添加了jar apache-log4j-extras-1.1.jar和log4j-1.2.16.jar.Log正在打印 但是没有生成zip或gz文件。任何解决方案??
log4j.rootLogger=ERROR, request
log4j.appender.request=org.apache.log4j.rolling.RollingFileAppender
log4j.appender.request.File=path-to-logfolder/logs/File.log
log4j.appender.request.RollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
log4j.appender.request.RollingPolicy.ActiveFileName =path-to-logfolder/logs/File.log
log4j.appender.request.RollingPolicy.FileNamePattern=path-to-logfolder/logs/File.%d{yyyyMMdd}.log.zip
log4j.appender.request.layout = org.apache.log4j.PatternLayout
log4j.appender.request.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
log4j.appender.request.Append = true