-rw-rw-r-- 1 forge forge 31580639 Jul 4 07:52 laravel.logTrue story from one of my projects - laravel.log file is 31 MB. It's pretty difficult to find anything there, if a client reports that "unknown bug" happened to him a few days ago. Luckily, it's really easy to change - it's only one setting in config/logging.php file:
'channels' => [ 'stack' => [ 'driver' => 'stack', 'channels' => ['single'], 'ignore_exceptions' => false, ],As you can see, by default the channel is single file, but you can change it to daily (or others, leaving that for you to explore).
When you change the setting to daily, instead of one laravel.log - you will get separate file for each date - something like laravel-2022-10-07.log.
Read more in the official documentation.
No comments or questions yet...