JLogger::Transport - base class for JLogger transport.
use base 'JLogger::Transport'; sub init { my $self = shift; ... } sub connect { my $self = shift; ... }
JLogger::Transport implements following attributes.
host
my $host = $transport->host;
port
my $port = $transport->port;
secret
my $secret = $transport->secret;
on_message
$transport->on_message(sub { my ($transport, $xml) = @_; ... }); my $cb = $transport->on_message;
init
$transport->init;
(Re)initialize transport. Called automatically after new.
connect
$transport->connect;
Estiblish connection to jabber server.
To install JLogger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JLogger
CPAN shell
perl -MCPAN -e shell install JLogger
For more information on module installation, please visit the detailed CPAN module installation guide.