Purpose of this package to create replacement for Yii2 built-in LogBehavior.
Why replacement? Because built-in LogBehavior write logs in string format: it cannot be easy parsed and processed.
This logger push same messages, but use classes:
- Error - queue job errors. Original exception will be stored as \Previous (instead of string, compared to built-in LogBehavior).
- MessageInterface - another events.
composer require horat1us/yii2-queue-log
<?php
use Horat1us\Yii\Queue;
return [
'components' => [
'queue' => [
'class' => \yii\queue\redis\Queue::class,
'as log' => Queue\Log\Behavior::class,
],
],
];