Each log is rotated on daily basis and also if the configured size of the log is reached (see below). Once the log is rotated it is kept for 7 days. Change in BellaDati 2.9.17: When log files are rotated they are gzipped so logs take less space and can be kept for longer. To extend number of days logs are kept, set logs.maxHistory JVM option in your application server to desired number of days. In case the value is lowered (compared to previous size) the already outdated files need to be deleted manually as logback will not delete them on file rotation. |