I've got a question, I have a lot of little scripts all based on a common perl package, all the scripts prints status messages on stdout and stderr. Now I want to redirect this output to a logfile with timestamps but I don't want to modify every print statement in each script.
I need to filter the output to stdout and stderr, add a timestamp and write it to a logfile. I've read 'Filtering Your Own output' on the cookbook but I don't like to fork, because there will be too many scripts running.
I would like to know if there is a better solution (without forking) or if there is a package that does this for me,