2017 © Pedro Peláez
 

library HttpCaptureBundle

Symfony bundle to capture http request and response data in your logs.

image

THemming/HttpCaptureBundle

Symfony bundle to capture http request and response data in your logs.

  • Wednesday, February 12, 2014
  • by timhemming
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

HTTP Capture Bundle

Build Status, (*1)

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., (*2)

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...), (*3)

Install & Configuration

These instruction are for Symfony 2.0.x., (*4)

Add this repo to you deps file:, (*5)

[HttpCaptureBundle]
  git=http://github.com/THemming/HttpCaptureBundle.git
  target=/bundles/THemming/HttpCaptureBundle

Run ./bin/vendors install, (*6)

Add to AppKernel.php in the registerBundles() function:, (*7)

new THemming\HttpCaptureBundle\HttpCaptureBundle(),

Add to autoload.php:, (*8)

'THemming'           => __DIR__.'/../vendor/bundles',

Configure parameters for your application, e.g. config.yml, config_prod.yml, etc:, (*9)

http_capture:
    enabled:  1
    max_length: 1000

Of course these values can be set as parameters for the parameters.ini file by setting them to something like:, (*10)

http_capture:
    enable: %http_capture_enable%
    max_length: %http_capture_max_length%

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.

The Versions

12/02 2014

dev-master

9999999-dev

Symfony bundle to capture http request and response data in your logs.

  Sources   Download

MIT

The Requires

 

by Tim Hemming

01/07 2012

v1.5

1.5.0.0

Symfony bundle to capture http request and response data in your logs.

  Sources   Download

MIT

The Requires

 

by Tim Hemming

07/06 2012

v1.0

1.0.0.0

Symfony bundle to capture http request and response data in your logs.

  Sources   Download

MIT

The Requires

 

by Tim Hemming