Do you mean an artisan command?
Sep 6, 2016
12
Level 3
Clear log file using laravel method ?
How to clear the log file using laravel method ?
Level 11
If you're having a space problem you can try using daily logs, it will automatically keep last X days of log (default 5). You can see it in Errors & Logging - Log Storage.
Otherwise you can simply remove the storage/logs/laravel.log file or make a command to do so (like php artisane log:clear).
2 likes
Please or to participate in this conversation.