jc-it/yii2-job-queue-logging

Job Queue implementation - Logging extension.

v2.0.0 2021-06-03 07:11 UTC

This package is auto-updated.

Last update: 2022-07-01 00:16:35 UTC


README

This extension provides a package extends the job queue implementation with logging.

$ composer require jc-it/yii2-job-queue-logging

or add

"jc-it/yii2-job-queue-logging": "<latest version>"

to the require section of your composer.json file.

Configuration

  • Implement \JCIT\jobqueue\interfaces\JobHandlerLoggerInterface::class and register it in your DI
  • Either add it to you JobHandler or extend \JCIT\jobqueue\jobHandlers\LoggingHandler::class
  • \JCIT\jobqueue\events\JobQueueEvent is triggered on ->put and ->handle to enable even more precise logging

Credits