Log::Log4perl::Appender::SpreadSession - Log to Spread
use Log::Log4perl; Log::Log4perl::init({ 'log4perl.logger' => 'DEBUG, Spread', 'log4perl.appender.Spread' => 'Log::Log4perl::Appender::SpreadSession', 'log4perl.appender.Spread.group' => 'group1' , 'log4perl.appender.Spread.spread_name' => '4803@localhost' , 'log4perl.appender.Spread.private_name' => 'uniquelogger' , 'log4perl.appender.Spread.layout' => 'Log::Log4perl::Layout::PatternLayout' , }); my $log = Log::Log4perl->get_logger(); $log->warn('this is my message');
This is am appender for publishing log messages to a spread group using Spread::Session.
Name of the group to publish to.
A string which identifies the spread host and port in the format <port>@<host>. Passed to Spread::Session::new.
<port>@<host>
Spread::Session::new
Optional. A unique name passed to the Spread::Session::new.
Trevor J. Little, <bundacia@tjlittle.com>
Copyright (C) 2010 by Trevor J. Little
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Log::Log4perl::Appender::SpreadSession, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Log4perl::Appender::SpreadSession
CPAN shell
perl -MCPAN -e shell install Log::Log4perl::Appender::SpreadSession
For more information on module installation, please visit the detailed CPAN module installation guide.