Note: These are the default settings on the properties:
log4j.appender.file.MaxFileSize=2MB
log4j.appender.file.MaxBackupIndex=20
where
MaxFileSize is the maximum allowed file size in bytes before rolling over. Suffixes KB, MB, and GB are allowed. The
MaxBackupIndex value is the maximum number of backup files to keep. It can be set to lesser values, for example:
log4j.appender.file.MaxFileSize=1MB
log4j.appender.file.MaxBackupIndex=10