lundi 11 mars 2019

How Laravel deletes old log files

I'm using Laravel 5.4. In my config/app.php file, the log storage option is set to daily. So the framework will create a daily log file like 'laravel-2019-03-11.log'. Also, the old log files will be deleted automatically as per default value or as per the value of log_max_files in the config/app.php file.

My question is where the unlink code is written (I tried to find it in the vendor folder but no luck)? Also, is there any way where I can override this default logic. What I want is, instead of removing these old log files, move it to another folder like log_backup or something.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire