1Log::Dispatch::Email::MUasielrSeCnodnetrr(i3b)uted PerlLDoogc:u:mDeinstpaatticohn::Email::MailSender(3)
2
3
4
6 Log::Dispatch::Email::MailSender - Subclass of Log::Dispatch::Email
7 that uses the Mail::Sender module
8
10 version 2.27
11
13 use Log::Dispatch;
14
15 my $log = Log::Dispatch->new(
16 outputs => [
17 [
18 'Email::MailSender',
19 min_level => 'emerg',
20 to => [qw( foo@example.com bar@example.org )],
21 subject => 'Big error!'
22 ]
23 ],
24 );
25
26 $log->emerg("Something bad is happening");
27
29 This is a subclass of Log::Dispatch::Email that implements the
30 send_email method using the Mail::Sender module.
31
33 Dave Rolsky <autarch@urth.org>
34
36 This software is Copyright (c) 2010 by Dave Rolsky.
37
38 This is free software, licensed under:
39
40 The Artistic License 2.0
41
42
43
44perl v5.12.2 2010-10-16Log::Dispatch::Email::MailSender(3)