uniplaces / request-logger-bundle
Symfony bundle to log information about the request like method, uri, latency
0.2.2
2019-03-15 21:59 UTC
Requires
- php: ^7.1.0
- psr/log: ^1.0
- symfony/config: ^4.0
- symfony/dependency-injection: ^4.0
- symfony/http-kernel: ^4.0
Requires (Dev)
- phpunit/phpunit: ^7.1
This package is auto-updated.
Last update: 2024-10-16 19:20:49 UTC
README
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
How to use it in your project
Add the bundle to your project dependencies:
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:
Uniplaces\RequestLoggerBundle\UniplacesRequestLoggerBundle::class => ['all' => true]
Log data
- method
- path
- content-type
- latency
- client-ip
- status_code
- user-agent