Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 25 days 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T22:00:24.000Z (almost 6 years ago)
- Last Synced: 2024-12-01T07:40:03.431Z (27 days 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
[![StyleCI](https://styleci.io/repos/129761376/shield?branch=master)](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:
![alt text](example_log.png)
### Packagist
[![Latest Stable Version](https://poser.pugx.org/uniplaces/request-logger-bundle/v/stable?format=flat-square)](https://packagist.org/packages/uniplaces/request-logger-bundle)
[![Total Downloads](https://poser.pugx.org/uniplaces/request-logger-bundle/downloads?format=flat-square)](https://packagist.org/packages/uniplaces/request-logger-bundle)
[![License](https://poser.pugx.org/uniplaces/request-logger-bundle/license?format=flat-square)](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