Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amsoell/log-requests
Laravel event listener to automatically log requests / responses on the HTTP facade
https://github.com/amsoell/log-requests
Last synced: about 6 hours ago
JSON representation
Laravel event listener to automatically log requests / responses on the HTTP facade
- Host: GitHub
- URL: https://github.com/amsoell/log-requests
- Owner: amsoell
- License: mit
- Created: 2023-09-06T09:56:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-06T09:58:56.000Z (over 1 year ago)
- Last Synced: 2025-01-03T01:08:37.317Z (2 days ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Log Requests
[![Latest Version on Packagist](https://img.shields.io/packagist/v/amsoell/log-requests.svg?style=flat-square)](https://packagist.org/packages/amsoell/log-requests)
[![Total Downloads](https://img.shields.io/packagist/dt/amsoell/log-requests.svg?style=flat-square)](https://packagist.org/packages/amsoell/log-requests)Log all outgoing requests and incoming responses from the Laravel HTTP client. Useful when developing apps that interact with third-party APIs.
## Installation
You can install the package via composer:
```bash
composer require amsoell/log-requests
```## Usage
Out-of-the-box, log-requests will log all outgoing / incoming HTTP responses to the default logging driver. This configuration can be changed by updating the `config/log-requests.php` configuration file to use your application's driver of choice.
### Testing
```bash
composer test
```### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Andy Soell](https://github.com/amsoell)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
## Laravel Package Boilerplate
This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).