2017 © Pedro Peláez
 

library beanstalk-logger

Log tool for beanstalk

image

razielsd/beanstalk-logger

Log tool for beanstalk

  • Monday, April 23, 2018
  • by razielsd
  • Repository
  • 1 Watchers
  • 0 Stars
  • 420 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 213 % Grown

The README.md

beanstalk-logger

Debug for beanstalk, (*1)

How to use

  • Type hinting: Pheanstalk -> PheanstalkInterface
  • Configure your factory for pheanstalk, (*2)

    ``` <?php, (*3)

namespace AppBundle\Pheanstalk;, (*4)

use Pheanstalk\Pheanstalk; use razielsd\beanstalklogger\DefaultLogger; use razielsd\beanstalklogger\BeanstalkWrapper;, (*5)

class BeanstalkFactory { public static function factory(string $host, int $port, bool $enableLog) { $pheanstalk = new Pheanstalk($host, $port, 1.0, true); $logger = new DefaultLogger(); $logger->enable($enableLog); return new PheanstalkWrapper($pheanstalk, $logger); } }, (*6)


# Symfony service example
app.pheanstalk:
    class: razielsd\beanstalklogger\BeanstalkWrapper
    factory: ['AppBundle\Beanstalk\BeanstalkFactory', factory]
    arguments: ['%beanstalkd_host%', '%beanstalkd_port%', true]

```, (*7)

The Versions

23/04 2018

dev-master

9999999-dev https://github.com/razielsd/beanstalk-logger

Log tool for beanstalk

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fateev Algis

beanstalk pheanstalk

23/04 2018

0.0.5

0.0.5.0 https://github.com/razielsd/beanstalk-logger

Log tool for beanstalk

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fateev Algis

beanstalk pheanstalk

23/04 2018

0.0.4

0.0.4.0 https://github.com/razielsd/beanstalk-logger

Log tool for beanstalk

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fateev Algis

beanstalk pheanstalk

23/04 2018

0.0.3

0.0.3.0 https://github.com/razielsd/pheanstalkdebug

Debug tool for pheanstalk

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fateev Algis

beanstalk pheanstalk

23/04 2018

0.0.2

0.0.2.0 https://github.com/razielsd/pheanstalkdebug

Debug tool for pheanstalk

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fateev Algis

beanstalk pheanstalk

23/04 2018

0.0.1

0.0.1.0 https://github.com/razielsd/pheanstalkdebug

Debug tool for pheanstalk

  Sources   Download

MIT

The Requires

 

by Fateev Algis

beanstalk pheanstalk