定制 themming/httpcapturebundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

themming/httpcapturebundle

Composer 安装命令:

composer require themming/httpcapturebundle

包简介

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

README 文档

README

Build Status

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:

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

Run ./bin/vendors install

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

new THemming\HttpCaptureBundle\HttpCaptureBundle(),

Add to autoload.php:

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

Configure parameters for your application, e.g. config.yml, config_prod.yml, etc:

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:

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.

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-06-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固