Log4j:warn No Such property [Maxbackupindex] in Org.apache.log4j.DailyRollingFileAppender.
Log4j:warn No Such property [MaxFileSize] in Org.apache.log4j.DailyRollingFileAppender.
The warning means that the Dailyrollingfileappender class does not have a property maxbackupindex,maxfilesize, it is saved by date, so there is no need to set the 2 properties, if you want to set the size of the log file, Rollingfileappender can be extended to this class, usually in the development of the log configuration file need to pay attention to the settings.
#以下红色的2点不需要设置
Log4j.rootlogger=info,r,stdout
Log4j.appender.r=org.apache.log4j.dailyrollingfileappender
Log4j.appender.r.file=log/loginfo.txt
log4j.appender.r.maxfilesize=500kb
log4j.appender.r.maxbackupindex=10
Log4j.appender.r.layout=org.apache.log4j.patternlayout
Log4j.appender.r.layout.conversionpattern=%d{yyyy-mm-dd hh:mm:ss,sss} [%t] [%c] [%p]-%m%n
Log4j.logger.com.innet.application.model=error
Log4j:warn No Such property [Maxbackupindex] in or