• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Logging options (rotation, no date in filename...)

#1
Hello,

Would it be possible to update the logging in codeigniter so that the logs can be easily rotated ?

I see 2 ways, which could be 2 options used by the logging mechanism:

- add the ability to not have the date in the log filename. Currently it is log-YYYY-MM-DD.php. Letting the possibility to name it log.php (or whatever, but not something that changes everyday), makes the life of the admin of the server easier in the sense that he can setup a logrotate rule easily.

- For those who can't administer the server and use the option above, there could be this other feature: make codeigniter rotate its logs itself. For example keep only the last 7 logs (or the logs of the last 7 days...). The number of days could be configured through a config option.

Ideally this should be backported to CI3.

In my opinion this is really lacking in CI and could lead to having logs taking a lot of disk space.

Regards
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.