On 02/10/2012 14:05, Barry Brevik wrote: > I am writing a process that is going to run on a remote machine, and I want > to log all of the errors. > > That is to say, in case my testing has been less than perfect, I want to log > any error messages internally generated by Perl. I’ve got my own “die” > messages covered; I mean the actual Perl messages. > > Is there a signal or something that I can trap?
Just redirect stdout, stderr to your log file - that should cover it. Assuming you have your logfile open to LOG: open STDERR, '>&=LOG' ... open STDOUT, '>&=LOG' ... _______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs