The stupid question is the question not asked | |
PerlMonks |
Log STDERRby onegative (Scribe) |
on Apr 04, 2011 at 14:39 UTC ( [id://897337]=perlquestion: print w/replies, xml ) | Need Help?? |
onegative has asked for the wisdom of the Perl Monks concerning the following question:
G'day Monks,
I have a question is it possible to pass all STDERR into a logger function? I want to log any errors from supporting modules into my application log to be able to correlate what the application was doing when the error occurred. Any suggestions would be greatly appreciated and thanks in advance. Danny Here is my logger function, the Date() function provides the timestamps for log file name and log entry. What I was hoping to do is something like this Logger(STDERR)
Back to
Seekers of Perl Wisdom
|
|