What CPAN module can send all warnings and errors to a log file?

Posted by mithaldu on Stack Overflow See other posts from Stack Overflow or by mithaldu
Published on 2010-04-25T06:31:14Z Indexed on 2010/04/25 6:33 UTC
Read the original article Hit count: 359

I'm maintaining some website code that currently dumps all errors and warnings into the apache log. This is a problem for me as i cannot access that due to lack of root.

As such I am looking to redirect all warnings and errors to a specified log file under my control. I'd like to do so without preventing those messages from going through their usual patch of execution.

Now, before i spend a lot of time fiddling with the Perl internals and possibly breaking things unawares I thought I'd look for a CPAN module that does this. However, I either do not know how to properly search for this, or I am overlooking something and thus cannot find any module that seems suitable.

Thus my asking here: What CPAN module would i use for this task?

© Stack Overflow or respective owner

Related posts about perl-module

Related posts about perl