Path: usenet.cise.ufl.edu!huron.eel.ufl.edu!usenet.eel.ufl.edu!uky.edu!news.campus.mci.net!news-out.cwix.com!news1.cwix.com!newsfeed.cwix.com!209.144.204.114!newsfeed.corridex.com!nntp2.savvis.net!inetarena.com!not-for-mail
From:
[email protected] (Honza Pazdziora)
Newsgroups: comp.lang.perl.announce,comp.lang.perl.modules
Subject: ANNOUNCE: Tie::STDERR 0.20
Followup-To: comp.lang.perl.modules
Date: 22 Dec 1998 04:19:20 GMT
Organization: Faculty of Informatics, Masaryk University, Brno
Lines: 43
Approved:
[email protected] (comp.lang.perl.announce)
Message-ID: <
[email protected]>
Reply-To:
[email protected]
NNTP-Posting-Host: halfdome.holdit.com
X-Disclaimer: The "Approved" header verifies header information for article transmission and does not imply approval of content.
Xref: usenet.cise.ufl.edu comp.lang.perl.announce:194 comp.lang.perl.modules:7091
Hello,
http://www.fi.muni.cz/~adelton/perl/Tie-STDERR-0.20.tar.gz
has entered CPAN as
file: $CPAN/authors/id/JANPAZ/Tie-STDERR-0.20.tar.gz
size: 3190 bytes
md5: da279ec2514629e5e1c2cb986ac036f0
This module redirects the standard error output to email, file or
process. The syntax is
use Tie::STDERR; # sends the output to root
use Tie::STDERR 'adelton', 'STDERR output'; # send the output to me
use Tie::STDERR '| logger ...'; # you guess these
use Tie::STDERR '>> /tmp/testing.log';
The advantage is that the module catches all output, warnings coming
from -w, dies, explicit prints to STDERR. You do not need any special
treating of error conditions, just use the module at the start of your
scripts. Also, it only sends the email if there actually is something
to send, like cron does, so you do not get email for each run of the
script, only for those when something went wrong. When sending via
email, Tie::STDERR adds the %ENV info for easier debugging.
We've been using this in our CGI and non-CGI scripts for a couple of
months, and it's reasonable watcher that notifies you as soon as
something goes wrong (because of unexpected conditions, for example).
It's reasonable both during development and in the production code.
This release makes changes that enable use of Tie::STDERR even in
scripts that run under mod_perl/Apache::Registry.
Comments are appreciated,
--
------------------------------------------------------------------------
Honza Pazdziora |
[email protected] |
http://www.fi.muni.cz/~adelton/
Boycott the Czech Telecom -- www.bojkot.cz
------------------------------------------------------------------------