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 contain the maxbackupindex and maxfilesize attributes. It stores logs by date, so you do not need to set these two attributes, if you want to set the log file size, you can extend the rollingfileappender class. Note the settings in the log configuration file during development.
# Do not set the Red 2 points below
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