Download the PHP package themming/httpcapturebundle without Composer
On this page you can find all versions of the php package themming/httpcapturebundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download themming/httpcapturebundle
More information about themming/httpcapturebundle
Files in themming/httpcapturebundle
Package httpcapturebundle
Short Description Symfony bundle to capture http request and response data in your logs.
License MIT
Informations about the package httpcapturebundle
HTTP Capture Bundle
A Symfony2 bundle that logs HTTP request and response information for debugging proposes. It can be switched on and off at will to help track down errors.
This bundle was initially developed to help analyse REST web service interaction. The captured information is sent to the application logger (Monolog) over the channel "http_capture". With Symfony 2.0 all logging messages are directed to all message handlers. Symfony 2.1 will resolve this issue and it will be simple for all messages on the http_capture channel to be directed to a dedicated logging handler (file, database, monitoring system, etc...)
Install & Configuration
These instruction are for Symfony 2.0.x.
Add this repo to you deps
file:
Run ./bin/vendors install
Add to AppKernel.php
in the registerBundles()
function:
Add to autoload.php
:
Configure parameters for your application, e.g. config.yml
, config_prod.yml
, etc:
Of course these values can be set as parameters for the parameters.ini
file by setting them to something like:
TODO
- Write tests and add to TravisCI.
- Additional capture info: security, time taken to service request, memory usage, form-encoded data, truncated multipart data.
- Symfony 2.1 branch. Add composer definition and setup automated packagist deployment.
- Test performance with large request/responses.
All versions of httpcapturebundle with dependencies
symfony/http-kernel Version >=2.0.0,<2.0.x-dev
monolog/monolog Version 1.1.*