jumptwentyfour / laravel-http-logger
A logger middleware for HTTP requests and responses
Package info
github.com/JumpTwentyFour/laravel-http-logger
pkg:composer/jumptwentyfour/laravel-http-logger
1.0.3
2022-06-22 11:23 UTC
Requires
- php: ^7.2|^8.0
- illuminate/support: ~5.8.0|^6.0|^7.0|^8.0|^9.0
README
Installation
You can install the package via composer:
composer require jumptwentyfour/laravel-http-logger
Optionally you can publish the config file with:
php artisan vendor:publish --provider="JumpTwentyFour\LaravelHttpLogger\ServiceProvider" --tag="config"
Usage
This packages provides a middleware which can be added as a global middleware or as a single route.
// In `app/Http/Kernel.php` protected $middleware = [ // ... \JumpTwentyFour\LaravelHttpLogger\Middleware\HttpLogger::class ];
// In a routes file Route::post(...)->middleware(\JumpTwentyFour\LaravelHttpLogger\Middleware\HttpLogger::class);