qlimix/messagebus-logging-middleware

Logging messages going through the messagebus with middleware

2.0.0 2020-04-19 11:32 UTC

This package is auto-updated.

Last update: 2024-04-19 20:55:18 UTC


README

Travis CI Coveralls Packagist MIT License

Logging messages going through the messagebus with middleware.

Install

Using Composer:

$ composer require qlimix/messagebus-logging-middleware

usage

<?php

use Qlimix\MessageBus\MessageBus\Middleware\MessageLoggerMiddleware;

$messageLogger = new FooBarMessageLogger();
$messageLoggerMiddleware = new MessageLoggerMiddleware($messageLogger);

Testing

To run all unit tests locally with PHPUnit:

$ vendor/bin/phpunit

Quality

To ensure code quality run grumphp which will run all tools:

$ vendor/bin/grumphp run

Contributing

Please see CONTRIBUTING for details.