Logs only keep 5 backups?
-
- Posts: 271
- Joined: Fri Jan 02, 2015 3:26 am
Logs only keep 5 backups?
How come the logging folder only cycles through 6 total log files, and 5 backups? I noticed that I've got mylar.log, mylar.log.1, mylar.log.2, mylar.log.3, mylar.log.4, mylar.log.5 and then it just recycles. Is that to try and minimize disk space or is there some other reason/
- evilhero
- Site Admin
- Posts: 2883
- Joined: Sat Apr 20, 2013 3:43 pm
- Contact:
Re: Logs only keep 5 backups?
Yes that's correct - it only holds the 5 + main log for retention and to minimize disk space (although, really even set to 5mb/log if you can't spare 30mb what kind of OS are you running?)Offspring wrote:How come the logging folder only cycles through 6 total log files, and 5 backups? I noticed that I've got mylar.log, mylar.log.1, mylar.log.2, mylar.log.3, mylar.log.4, mylar.log.5 and then it just recycles. Is that to try and minimize disk space or is there some other reason/
You can change the file size of the logs though within the GUI (Configuration / Advanced Options).
You can change the number of logs, but you'd have to change the coding:
If you want to change the number of log files to retain, you need to edit the logger.py module, and change MAX_FILES on line 30, to whatever numeric you want:
Code: Select all
MAX_FILES = 5