NEW_LOGFILE=log/production.log.`date +%Y%m%d`
cd RAILS_ROOT
cp log/production.log $NEW_LOGFILE
cat /dev/null > log/production.log
/usr/bin/pl_analyze log/production.log.`date +%Y%m%d` -e mic...@koziarski.com
gzip $NEW_LOGFILE
An easier option (if you can) is using the robot-coops sysloglogger,
which means you can use all the standard syslog configuration options
for log rotation
--
Cheers
Koz
I investigated it for use in conjunction with pl_analyze, but I can't
figure out how to hook it in to Rails (+ Capistrano) properly.
--
Nik Wakelin
(027) 424 5433
munky...@gmail.com
Eric's documentation is somewhat lacking, and contains errors.
However geoff grosenbach has a good hack to let you work with
pl_analyze without sysloglogger
http://nubyonrails.com/articles/2007/01/03/a-hodel-3000-compliant-logger-for-the-rest-of-us
We're using that at planhq, seems to work pretty well.
--
Cheers
Koz
Cheers Koz.
On 2/14/07, Michael Koziarski <kozi...@gmail.com> wrote:
>