Skip to content

Fixed BUG-42556: Adding remove log archive policy to prevent indefinite growth.

Javier Armendáriz requested to merge javi.armendariz/openbravo:fix/42556 into master

Using current log4j config, only files under the same period of time are limited (i.e. when logfile is bigger than 100MB, there can be max 30 log archives for the same day).

The new rule added applies to log archives with the format openbravo-*.log.gz and will remove the oldest archive until there are max 30 files. This process will be performed every time a log rollover occurs, that is, when tomcat starts or when at least one of the rollover conditions occurs (logfile exceeds 100MB or a day passes).

Edited by Javier Armendáriz

Merge request reports