This package allows you to log requests and responses from
- Laravel Routes
- Http Facade
- GuzzleHttp Client via ready-to-use Middleware classes. You can also filter the values of specific keys that are might be present in request/response.
- You can install the package via composer:
composer require ismoil-nosr/laravel-reqresp-logging
- Publish config
php artisan vendor:publish --tag=reqresp-config
- Set
.env
# REQRESP LOGGING
REQRESP_ENABLED=true
REQRESP_QUEUE_ENABLED=true
REQRESP_FILTER_REQUEST_ENABLED=true
REQRESP_FILTER_RESPONSE_ENABLED=true
REQRESP_FILTER_KEYS=password
REQRESP_LOGGER_CHANNEL=daily
REQRESP_QUEUE_NAME=logs
By default package uses daily
channel.
'database' => [
'driver' => 'monolog',
'handler' => MysqlLogHandler::class,
'level' => 'debug',
]
// Usage description here
// Usage description here
// Usage description here
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.