Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14699
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: archiving CodeIgniter's error log files |
| Date | 2014-12-10 19:08 +0100 |
| Message-ID | <cergg7Fl6gvU1@mid.uni-berlin.de> (permalink) |
| References | <3db1b5b0-79e3-4c83-8074-9be6d04b10a1@googlegroups.com> |
On 09.12.2014 14:45, RAM wrote:
> I use error logging in my first CodeIgniter application. I do not want to have many log-*.php files in appliction/logs folder. Should I write shell script to archive old logs (and put this script into crontab)? Or else there's automatic CodeIgniter's mechanism to do this? I am new to CodeIgniter.
> Sorry for my English.
>
If you are on a linux/*nix server
if you have root access
have a look at the "logrotate" program
It takes care of the system log files, and you could add your app log with a few lines...
/Str.
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread
archiving CodeIgniter's error log files RAM <jivanmukta@poczta.onet.pl> - 2014-12-09 05:45 -0800 Re: archiving CodeIgniter's error log files Jerry Stuckle <jstucklex@attglobal.net> - 2014-12-09 10:03 -0500 Re: archiving CodeIgniter's error log files "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2014-12-10 19:08 +0100
csiph-web