You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Andreas J. Koenig" <an...@franz.ak.mind.de> on 2006/03/23 05:00:39 UTC
howto streamline warnings
What is the recommended way to configure mod_perl's behaviour on warn()?
Is there a configurable connection between Apache::Log and
CORE::warn() or do I write a global $SIG{__WARN__}?
Background: we have already plenty of handlers that all usually use
perl's warn to write their diagnostics to error_log. We'd like to add
the timestamp of log_error to all these warnings an would like to do
it with a single line if possible.
Thanks in advance,
--
andreas
Re: howto streamline warnings
Posted by Perrin Harkins <pe...@elem.com>.
On Thu, 2006-03-23 at 05:00 +0100, Andreas J. Koenig wrote:
> Is there a configurable connection between Apache::Log and
> CORE::warn() or do I write a global $SIG{__WARN__}?
I think the easiest approach is to use $SIG{__WARN__} for this.
- Perrin