I would like to know if there is any way to limit the size of a log file in Laravel. I am doing the rotate to create a Log per day, and that these are deleted after a certain time like this:
'custom' => [
'driver' => 'stack',
'channels' => ['daily'],
'tap' => ['CustomLogger::class'],
'days' => 15
]
What creates a log file per day with the format laravel-2022-10-10.log
, what I need now is to put a size limit on that Log. That is to say that this file cannot exceed 300mb and if it does, another new file is created that now would be called something like laravel-2022-10-10(2).log
Is there something that makes this possible in Laravel?