Download the PHP package samuelerwardi/lumeninterceptor without Composer
On this page you can find all versions of the php package samuelerwardi/lumeninterceptor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download samuelerwardi/lumeninterceptor
More information about samuelerwardi/lumeninterceptor
Files in samuelerwardi/lumeninterceptor
Download samuelerwardi/lumeninterceptor
More information about samuelerwardi/lumeninterceptor
Files in samuelerwardi/lumeninterceptor
Vendor samuelerwardi
Package lumeninterceptor
Short Description This library for write log using intercept request and response middleware
License
Package lumeninterceptor
Short Description This library for write log using intercept request and response middleware
License
Please rate this library. Is it a good library?
Informations about the package lumeninterceptor
Lumen Interceptor
This library for write log using intercept request and response middleware
Installation
Use [Composer] to install the package:
Note
Make sure if you using php-fpm, add log_limit = 100000
on your php-fpm pool, to prevent multiline output on stdout
Usage
- Change extended class in app/Exceptions/Handler.php from
Laravel\Lumen\Exceptions\Handler as ExceptionHandler
withuse Yannice92\LumenInterceptor\Exceptions\BaseHandler;
so it should beclass Handler extends BaseHandler
-
Add
Yannice92\LumenInterceptor\Http\Middleware\LogRequestResponseMiddleware::class
in global middleware on bootstrap/app.php - Add
X-Request-ID
header for correlation Id - Add config/logging.php
'stdout' => [ 'driver' => 'monolog', 'level' => 'info', 'handler' => StreamHandler::class, 'with' => [ 'stream' => 'php://stdout', ], 'formatter' => \Yannice92\LumenInterceptor\Logging\JsonFormatter::class, ],
Authors
All versions of lumeninterceptor with dependencies
PHP Build Version
Package Version
Requires
ext-json Version
*
php Version ^7.2
fzaninotto/faker Version ^1.9
guzzlehttp/guzzle Version ^6.5
http-interop/http-factory-guzzle Version ^1.0
lcobucci/jwt Version ^3.3
symfony/psr-http-message-bridge Version ^2.0
php Version ^7.2
fzaninotto/faker Version ^1.9
guzzlehttp/guzzle Version ^6.5
http-interop/http-factory-guzzle Version ^1.0
lcobucci/jwt Version ^3.3
symfony/psr-http-message-bridge Version ^2.0
The package samuelerwardi/lumeninterceptor contains the following files
Loading the files please wait ....