2017 © Pedro Peláez
 

library monolog-publish

A publisher handler for monolog

image

zae/monolog-publish

A publisher handler for monolog

  • Thursday, May 14, 2015
  • by Zae
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

monolog-publish

Latest Version Software License Build Status Total Downloads, (*1)

A simple Monolog handler that can be used to 'publish' the errors to a subscriber., (*2)

Publishers

Available publishers are:, (*3)

  • RedisPublisher

Install

Via Composer, (*4)

``` bash $ composer require zae/monolog-publish, (*5)


## Usage ``` php use Monolog\Logger; use Monolog\Handler\StreamHandler; use Zae\Monolog\Publish\Handler\PublishHandler; use Zae\Monolog\Publish\Publisher\RedisPublisher; // create a log channel $log = new Logger('name'); $log->pushHandler(new PublishHandler(new RedisPublisher('log', Logger::WARNING))); // add records to the log $log->addWarning('Foo'); $log->addError('Bar');

Testing

bash $ phpunit, (*6)

Contributing

Contributions are welcome via pull requests on github., (*7)

Mostly new publishers are needed., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

14/05 2015

dev-master

9999999-dev

A publisher handler for monolog

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ezra Pool

monolog redis publish

14/05 2015

0.0.2

0.0.2.0

A publisher handler for monolog

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ezra Pool

monolog redis publish

14/05 2015

0.0.1

0.0.1.0

A publisher handler for monolog

  Sources   Download

MIT

The Requires

 

The Development Requires

monolog publish zae