Friday, 15 February 2013

php - Logs folder is becoming heavy in Codeigniter -


I have enabled error logging in the codeigniter and in my logs folder path it can be found in the application / logs / Folder files are being automatically created with codeigniter log-2015-03-17.php and log-2015-03-16.php etc.

I want the files that are older than two days should be removed automatically, is there any way in this to do the codinator or will I have to make cron for this purpose?

Thanks in advance.

As far as I know it's php / codinator, but it's a matter of server management. How it depends on which server you are working on: For example, on linux, you can use " logrootate " (), you can get information from here on windows Are ().


No comments:

Post a Comment