scones/resque-logger

resque-logger is a psr/log plugin for scones/resque to log all events

1.0.1 2019-05-28 14:28 UTC

This package is auto-updated.

Last update: 2024-10-29 03:43:12 UTC


README

Build Status Scrutinizer Code Quality Code Coverage

Resque Logger

This is a plugin to log all events from scones/resque via a psr logger.

Install

In most cases it should suffice to just install it via composer.

composer require scones/resque-logger "*@stable"

Usage

You will need to have a psr-14 listener provider configured ($listenerProvider). You will need to have a psr-14 task processor configured (using the same listener provider, added to resque and worker and job). You will need to have a psr/log logger configured ($logger).

Having that, it will boil down to:

$resqueLogger = new ResqueLogger($logger, $listenerProvider);
$resqueLogger->register();

You can also always inspect the examples: https://github.com/scones/resque-examples