Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: How can I save error message to a file?by Zaxo (Archbishop) |
on Jun 12, 2007 at 01:40 UTC ( [id://620616]=note: print w/replies, xml ) | Need Help?? |
If it's a special run, you can just redirect (./foo 2> /path/to/testlog.txt) from the command line. Otherwise, You can remove the "if $TESTING" clause if you want to log all errors from this code. If you do that, you may want to include a timestamp in your warnings and dying words. After Compline,
In Section
Seekers of Perl Wisdom
|
|