The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
If you have trouble telling where an error occured in the script, output file and line information along with your error message. If this thing is spread across multiple machines, you could even add host info to each line of error output. I generally have a subroutine that handles that sort of thing for me. That way, it's behaviour is in one place, and the rest of the script only has to know that it is logging something (and not the details of whre it goes or what other information is attached).
-- brian d foy <bdfoy@cpan.org> In reply to Re: Redirecting logging and STDERR to a single file
by brian_d_foy
|
|