ajaaleixo / laravel-middleware-correlation-id
Laravel Package to use a Correlation ID Middleware
Installs: 4 885
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 4
Open Issues: 2
Requires
- php: >=7.0
- webpatser/laravel-uuid: ^3.0
Requires (Dev)
- codacy/coverage: dev-master
- orchestra/testbench: ^3.6
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-10-30 01:37:26 UTC
README
Laravel Correlation ID Middleware
Supports L5.5+
This package offers you a way of adding a correlation id output on Laravel Logger based on a sent Header. Inspired by this repo it has:
- all the functionality to set macros on a Request and Push a Monolog Processor
- adds a configuration file to override settings
- adds proper tests
- enables usage for recent Laravel versions (5.5+)
Install
Add Service provider
Open your config/app.php and insert the following in providers key:
Ajaaleixo\Middleware\CorrelationId\CorrelationIdServiceProvider::class,
Run Publish command
php artisan vendor:publish --provider="Ajaaleixo\Middleware\CorrelationId\CorrelationIdServiceProvider"
Edit your settings
Open config/correlationid.php
.