NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Log everything, iterate your configs (Score:1)
If you use something like log4perl or Log::Dispatch, as suggested earlier, you can set up multiple levels of logs that you can adjust without altering code, and then just spew as desired. For example: initially log details to a database and a series of space-managed (e.g. rotated) log files until you decide which way is really the easiest for you to delog; log a subset of messages to another file to give you a higher level view of what is going at a glance and perhaps mail the tail of this file if an important event occurs. Over time you can adjust how these are configured, but at least you don't have to fiddle with code as much.
Reply to This