How can I define the maximum number of log files in Laravel 5. I use daily log rotate, and I have "only" 5 log files in storage, I want to have the past 30 days, but I don't know how to do this, and I did not found any clue.
Ok, it's now possible since v5.0.23. You just need to update laravel, and add this in your config/app.php
file:
'log_max_files' => 30
On Laravel 5.6 You can find config/logging.php
file:
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
'days' => 30, // 0 for unilimitted logs
],
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments