<TimeBasedTriggeringPolicy modulate="true" interval="1"/> </Policies> <!-- DefaultRolloverStrategy属性如不设置,则默认为最多同一文件夹下7个文件,这里设置了31 --> <DefaultRolloverStrategy max="${backupsFileNum}"/> </RollingRandomAccessFile> <RollingRandomAccessFile name="warnLevelLog" fileName=...
Log4j will inspect the"log4j.configurationFile"system property and, if set, will attempt to load the configuration using theConfigurationFactorythat matches the file extension.(log4j将检查"log4j.configurationFile"系统属性,如果设置了这个属性,将尝试使用匹配这个文件扩展名的ConfigurationFactory加载配置。) If ...
log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n # Redirect log messages to a log file log4j.appender.file=org.apache.log4j.RollingFileAppender #out...
Log4j will inspect the"log4j.configurationFile"system property and, if set, will attempt to load the configuration using theConfigurationFactorythat matches the file extension.(log4j将检查"log4j.configurationFile"系统属性,如果设置了这个属性,将尝试使用匹配这个文件扩展名的ConfigurationFactory加载配置。) If ...
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n Output to File # Root logger option log4j.rootLogger=INFO, file # Direct log messages to a log file ...