Logs should be limited not to exceed certain size, that can be specified via config. Any kind of file size checks should be done when script ends its execution, not after each line is logged.
Current log file name: log.log
Earliest known log file name: log.log.1
Log from yesterday file name: log.log.351
Also note that when early logs are deleted, the numbering shouldn't restart at 1 but resume at the last number available.
Logs should be limited not to exceed certain size, that can be specified via config. Any kind of file size checks should be done when script ends its execution, not after each line is logged.
Current log file name:
log.log
Earliest known log file name:log.log.1
Log from yesterday file name:log.log.351
Also note that when early logs are deleted, the numbering shouldn't restart at 1 but resume at the last number available.