Hi All: I wanted your comments and some suggestions. I am planning on publishing a Perl module that I have written and successfully used for some time now. I hope it is useful to others as well. Here is some of the documentation:
NAME Auto::Log - a simple Perl extension that allows messages to be redirected to a specific file SYNOPSIS use Auto::Log; my $log = new Auto::Log "allmsg.log"; print "This will go into the log file.\n"; warn "This will also automatically go into the log file.\n" $log->DESTROY; # restores STDOUT and STDERR to original state my $log2 = my Auto::Log "new.log"; print "Print this to new.log\n"; my $log3 = my Auto::Log "one-more.log"; ## Now things are redirected into this log file instead of new.log print "New stuff printed here.\n"; $log3->DESTROY; ## Restore the redirection back to $log2 that is to new.log print "Finished with one-more.log\n"; $log2->DESTROY; ## Restore STDOUT and STDERR Thanks, Balaji