I have enabled error logging in codeigniter and my logs folder path is application/logs/
in this folder files are being created from codeigniter automatically as log-2015-03-17.php
and log-2015-03-16.php
etc.
I want that the files which are older than two days should be deleted automatically, so is there any way in codeigniter to do this or I have to create a cron
for this purpose?
Thanks in advance.