Subject: ANNOUNCE: Tie::STDERR 0.20
From: [email-masked] (Honza Pazdziora)
Date: 22 Dec 1998 04:19:20 GMT
Newsgroups: comp.lang.perl.announce,comp.lang.perl.modules

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-masked] | http://www.fi.muni.cz/~adelton/
		Boycott the Czech Telecom -- www.bojkot.cz
------------------------------------------------------------------------