Trevor Little > Log-Log4perl-Appender-SpreadSession-0.03 > Log::Log4perl::Appender::SpreadSession

Download:
Log-Log4perl-Appender-SpreadSession-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Log::Log4perl::Appender::SpreadSession - Log to Spread

SYNOPSIS ^

    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');

DESCRIPTION ^

This is am appender for publishing log messages to a spread group using Spread::Session.

OPTIONS

group

Name of the group to publish to.

spread_name

A string which identifies the spread host and port in the format <port>@<host>. Passed to Spread::Session::new.

private_name

Optional. A unique name passed to the Spread::Session::new.

AUTHOR ^

Trevor J. Little, <bundacia@tjlittle.com>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: