Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14697 > unrolled thread
| Started by | RAM <jivanmukta@poczta.onet.pl> |
|---|---|
| First post | 2014-12-09 05:45 -0800 |
| Last post | 2014-12-10 19:08 +0100 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.php
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
| From | RAM <jivanmukta@poczta.onet.pl> |
|---|---|
| Date | 2014-12-09 05:45 -0800 |
| Subject | archiving CodeIgniter's error log files |
| Message-ID | <3db1b5b0-79e3-4c83-8074-9be6d04b10a1@googlegroups.com> |
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.
[toc] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2014-12-09 10:03 -0500 |
| Message-ID | <m672uo$7ol$1@dont-email.me> |
| In reply to | #14697 |
On 12/9/2014 8:45 AM, 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. > Try asking CodeIgniter support. People who develop and/or use their product will have more suggestions than in a PHP newsgroup (where few, if any, use it). -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
|---|---|
| Date | 2014-12-10 19:08 +0100 |
| Message-ID | <cergg7Fl6gvU1@mid.uni-berlin.de> |
| In reply to | #14697 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web