github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

plu / log-handler-output-gearman

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (1)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (1)
    • 0.01003
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Log::Handler::Output::Gearman - Send log messages to a Gearman worker. — Read more

  cancel

http://search.cpan.org/dist/Log-Handler-Output-Gearman

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Fixes examples 
Johannes Plunien (author)
Mon Nov 09 00:09:26 -0800 2009
commit  d7739eaf320cfa5153a84f73a69abe972bc43b1a
tree    4234bdfcf379f5df0ccf66d830fc1d03b7bab362
parent  286565711f23967ad7862fca9e0912aab7a1dd93
log-handler-output-gearman /
name age
history
message
file .gitignore Wed Jul 15 00:08:45 -0700 2009 * Changed host/port parameters to an arrayref c... [Johannes Plunien]
file Changes Sun Nov 08 23:34:26 -0800 2009 Removed prepare_message option since this is su... [Johannes Plunien]
file MANIFEST.SKIP Fri Nov 06 07:15:35 -0800 2009 Updated MANIFEST.SKIP [Johannes Plunien]
file Makefile.PL Sun Nov 08 23:57:48 -0800 2009 Fixed skip tests in live test [Johannes Plunien]
file README Loading commit data...
directory examples/
directory lib/ Sun Nov 08 23:34:26 -0800 2009 Removed prepare_message option since this is su... [Johannes Plunien]
directory t/ Sun Nov 08 23:57:48 -0800 2009 Fixed skip tests in live test [Johannes Plunien]
README
NAME
    Log::Handler::Output::Gearman - Send log messages to Gearman workers.

SYNOPSIS
        use Log::Handler::Output::Gearman;

        my $logger = Log::Handler::Output::Gearman->new(
            servers => ['127.0.0.1:4731'],
            worker  => 'logger',
        );

        my $message = 'This is a log message';
        $logger->log( $message );

DESCRIPTION
    This is experimental ( beta ) and should only be used in a test
    environment. The API may change at any time without prior notification
    until this message is removed!

METHODS
  new
    Takes a number of arguments, following are mandatory:

    *   servers

            # hostname:port gearmand is running on
            servers => [
                '127.0.0.1:4731',
                '192.168.0.1:4735',
                '192.168.0.2'       # uses default port (4730)
            ]

    *   worker

            # name of the worker that should process the log messages
            worker => 'logger'

    Besides it takes also following optional arguments:

    *   method (default: do_background)

            method => 'do_high_background'

        This can be one of the following Gearman::XS::Client methods:

        * "do"
        * "do_high"
        * "do_low"
        * "do_background"
        * "do_high_background"
        * "do_low_background"

  log
    Takes one argument:

    *   $message - The log message

  errstr
    Returns the last error message.

  gearman_client
    Returns Gearman::XS::Client instance.

  reload
    Reload with a new configuration.

AUTHOR
    Johannes Plunien <plu@cpan.org>

COPYRIGHT AND LICENSE
    Copyright 2009 by Johannes Plunien

    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

SEE ALSO
    * Log::Handler
    * Gearman::XS::Client
    * <http://www.gearman.org/>

REPOSITORY
    <http://github.com/plu/log-handler-output-gearman/>

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server