major
minor
major
minor
Top-Logic has a default log configuration file for Log4j2.
Log files are only filled up to a certain size and are then "backed up." Only a specific number (10) of backup files are retained. Older backup files are deleted.
An unexpected naming strategy is used for the backup files: tl.main.log -> tl.main.10.log -> tl.main.9.log -> ...-> tl.main.1.log; that is, when tl.main.log is full, tl.main.2.log is renamed to tl.main.1.log (overwriting it), tl.main.3.log is renamed to tl.main.2.log (overwriting it),..., tl.main.log is renamed to tl.main.10.log (overwriting it), and tl.main.log is then recreated. This means that tl.main.10.log is the newest backup file and tl.main.1.log is the oldest.
Intuitively, one would expect tl.main.1.log to be the newest backup file and tl.main.10.log to be the oldest.
The default configuration file is updated accordingly.
Test
- Make changes until at least two backup files have been created.
- Expected result: The file top-logic.main.1.log is newer than top-logic.main.2.log.