https://github.com/uniplaces/request-logger-bundle
Symfony bundle to log information about the request like method, uri, latency
https://github.com/uniplaces/request-logger-bundle
Last synced: 6 months ago
JSON representation
Symfony bundle to log information about the request like method, uri, latency
- Host: GitHub
- URL: https://github.com/uniplaces/request-logger-bundle
- Owner: uniplaces
- Created: 2018-04-16T15:01:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T22:00:24.000Z (about 6 years ago)
- Last Synced: 2024-12-01T07:40:03.431Z (6 months ago)
- Language: PHP
- Size: 87.9 KB
- Stars: 1
- Watchers: 19
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Request Logger Bundle
[](https://styleci.io/repos/129761376)
This project is a symfony bundle that can be added to other projects to log api requests.
It logs request information like method, uri, latency.This is an example of a log:

### Packagist
[](https://packagist.org/packages/uniplaces/request-logger-bundle)
[](https://packagist.org/packages/uniplaces/request-logger-bundle)
[](https://packagist.org/packages/uniplaces/request-logger-bundle)https://packagist.org/packages/uniplaces/request-logger-bundle
### How to use it in your project
Add the bundle to your project dependencies:
```bash
composer require uniplaces/request-logger-bundle
```Then, make sure the RequestLoggerBundle was added to your project's bundles.
If your project has a bundles.php file with an array of vendor bundles, add the RequestLoggerBundle there:
```text
Uniplaces\RequestLoggerBundle\UniplacesRequestLoggerBundle::class => ['all' => true]
```### Log data
* method
* path
* content-type
* latency
* client-ip
* status_code
* user-agent