Aaron Straup Cope > Log-Dispatch-Jabber > Log::Dispatch::Jabber

Download:
Log-Dispatch-Jabber-0.3.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 0.3   Source  

NAME ^

Log::Dispatch::Jabber - Log messages via Jabber

SYNOPSIS ^

 use Log::Dispatch;
 use Log::Dispatch::Jabber;

 my $dispatcher = Log::Dispatch->new();
 my $jabber     = Log::Dispatch::Jabber->new(
                                             name=>"jabber",
                                             min_level=>"debug",
                                             login=>{
                                                     hostname => "some.jabber.server",
                                                     port     => 5222,
                                                     username => "logger",
                                                     password => "*****",
                                                     resource => "logger",
                                                    },

                                             to=>["webmaster\@a.jabber.server",chief_honco\@a.jabber.server"],

                                             check_presence=>1,

                                             # Send a message to this address even if their
                                             # presence indicates they are not available.
                                             force=>"webmaster\@a.jabber.server",

                                             # Buffer 5 messages before sending.
                                             buffer => "5",
                                            );

 $dispatcher->add($jabber);

 $dispatcher->log(
                  level   => 'debug',
                  message => 'Hello. Programmer. This is '.ref($jabber)
                 );

DESCRIPTION ^

Log messages via Jabber.

ERRORS ^

All internal errors that the package encounters connecting to or authenticating with the Jabber server are logged to STDERR via Log::Dispatch::Screen.

PACKAGE METHODS ^

__PACKAGE__->new(%args)

Valid arguments are

Returns an object.

OBJECT METHODS ^

This package inherits from Log::Dispatch::Output.

Please consult the docs for details.

VERSION ^

0.3

DATE ^

November 25, 2002

AUTHOR ^

Aaron Straup Cope

SEE ALSO ^

Log::Dispatch

Net::Jabber

TO DO ^

BUGS ^

Please report all bugs to http://rt.cpan.org/NoAuth/Dists.html?Queue=Log::Dispatch::Jabber

LICENSE ^

Copyright (c) 2002, Aaron Straup Cope. All Rights Reserved.

This is free software, you may use it and distribute it under the same terms as Perl itself.

syntax highlighting: