|
Log::Agent::Driver::Mail - email driver for Log::Agent |
Log::Agent::Driver::Mail - email driver for Log::Agent
use Log::Agent; require Log::Agent::Driver::Mail;
my $driver = Log::Agent::Driver::Mail->make(
-to => 'oncall@example.org',
-cc => [ qw( noc@example.org admin@example,net ) ],
-subject => "ALERT! ALERT!",
-mailer => [ 'smtp', Server => 'mail.example.net' ]
);
logconfig(-driver => $driver);
This driver maps the logxxx() calls to email messages. Each call generates
a separate email message. The Mail::Mailer module is required.
The OPTIONS argument is a hash with the following keys:
Thanks to Shirley Wang for the idea for this module.
Mark Rogaski <mrogaski@pobox.com>
Copyright (C) 2002 Mark Rogaski; all rights reserved.
See the Log::Agent(3) manpage or the README file included with the distribution for license information.
the Mail::Mailer manpage, the Log::Agent::Driver(3) manpage, the Log::Agent(3) manpage.
|
Log::Agent::Driver::Mail - email driver for Log::Agent |