go ahead... be a heretic | |
PerlMonks |
Re: Re: Re: Controlling file size when writingby fokat (Deacon) |
on Mar 03, 2004 at 04:30 UTC ( [id://333449]=note: print w/replies, xml ) | Need Help?? |
And this is why you need production and dev boxes. In the production box, you only need enough logging so as to know when something breaks. In your dev box, you can re-harvest the offending pages and see the errors in all its glory, including the ability to add instrumentation to the code on the fly. If you cannot have the two boxes, perhaps you can run a second instance of your spider manually, when needed. I bet this is less resource-intensive that managing such huge logs. That being said, take a look at Logfile::Rotate. Best regards -lem, but some call me fokat
In Section
Seekers of Perl Wisdom
|
|