Laravel is automatically clearing the logs on our production server once every seven days. The desired outcome is to keep one log running log file that is never cleared.
I have set 'log_max_files' => 0
in config/app.php. I cleared the cache with php artisan cache:clear
, composer dump-autoload
, as well as php artisan config:cache
.
Our server is running on Google Console and deployed with Laravel Forge. There are no scheduled tasks on forge, nor are there any cronjobs running on the server that would empty the logs (that I know of).
edit: I have verified that the logs are behaving as expected on my development server and are not being emptied. This indicates that it's probably an issue with my production server, possibly Forge configuration or some default behavior on Google Console that might automatically clear logs.
Any advice would be greatly appreciated. Thank you!