Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14697 > unrolled thread

archiving CodeIgniter's error log files

Started byRAM <jivanmukta@poczta.onet.pl>
First post2014-12-09 05:45 -0800
Last post2014-12-10 19:08 +0100
Articles 3 — 3 participants

Back to article view | Back to comp.lang.php


Contents

  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

#14697 — archiving CodeIgniter's error log files

FromRAM <jivanmukta@poczta.onet.pl>
Date2014-12-09 05:45 -0800
Subjectarchiving 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]


#14698

FromJerry Stuckle <jstucklex@attglobal.net>
Date2014-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]


#14699

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2014-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