Huge log file

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
gkarthick87
Posts: 4
Joined: 15 Apr 2024, 09:39

Huge log file

Post by gkarthick87 » 22 Apr 2024, 12:57

Hi,

/myshop/storage/laravel.log this log file is taking bigspace like 24GB currently showing in my server. How can I control this occupy small space to avoid the server GB limit?

antoniosequeira66
Posts: 19
Joined: 06 Dec 2022, 09:37

Re: Huge log file

Post by antoniosequeira66 » 22 Apr 2024, 15:42

Hi, First you should check for ongoing errors in your system by continuously monitoring the Laravel log file. If you are using Linux try the command tail -f laravel.log.
It's essential to promptly address and resolve those errors.

Additionally, consider implementing a log rotation policy based on either date or size criteria.
check laravel recommend options

Post Reply