NAME
Log::Dispatch::Spread - Perl extension for logging Log::Dispatch messages to a Spread cluster
SYNOPSIS
use Log::Dispatch::Spread;
my $logobj = Log::Dispatch::Spread->new(
name => 'spread',
min_level => 'debug',
server => '4803@localhost',
channels => [ qw( foologs barlogs ) ],
);
$logobj->log( level => 'warn', message => "Two plus two equals four\n" );
DESCRIPTION
This module allows for logging via the Log::Dispatch system to a Spread cluster channel of your choice.
METHODS
new(%p)
This method takes a hash of parameters. The following options are valid:
name NAME
The name of the object. Required.
min_level LEVEL
The minimum logging level this object will accept. See the Log::Dispatch documentation for more information. Required.
max_level LEVEL
The maximum logging level this obejct will accept. See the Log::Dispatch documentation for more information. This is not required. By default the maximum is the highest possible level (which means functionally that the object has no maximum).
server PORT@HOST
The Spread server to connect to, specified in Spread.pm's connect string format (port@localhost). The 'PORT' portion can be ommitted, in which case the default (4803) is used.
channels [ 'CHANNELONE', 'CHANNELTWO' ]
The Spread channels to connect to. Must obey Spread's channel naming rules (See the Spread.pm documentation for details)
SEE ALSO
AUTHOR
Brian Thomas, <brian.thomas@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2006 by Brian Thomas
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 144:
You forgot a '=back' before '=head1'