alex / php-resque-log
There is no license information available for the latest version (dev-master) of this package.
A plugin for php-resque to log events using monolog
This package's canonical repository appears to be gone and the package has been frozen as a result.
dev-master
2014-11-24 15:08 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2020-08-02 19:39:48 UTC
README
A plugin for php-resque to log events using monolog
sample usage
use Monolog\Logger; use Monolog\Handler\SyslogHandler; use Monolog\Formatter\LineFormatter; $log = new Logger('workers'); $syslog = new SyslogHandler('webapp'); $formatter = new LineFormatter("%channel%.%level_name%: %message%"); $syslog->setFormatter($formatter); $log->pushHandler($syslog); ResqueLog\Plugin::init([ 'logger' => $log, 'vverbose' => false, 'queueSizeLimit' => 10, ]);