yannice92/lumeninterceptor 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

yannice92/lumeninterceptor

Composer 安装命令:

composer require yannice92/lumeninterceptor

包简介

This library for write log using intercept request and response middleware

README 文档

README

This library for write log using intercept request and response middleware

Installation

Use [Composer] to install the package:

$ composer require yannice92/lumeninterceptor

Note

Make sure if you using php-fpm, add log_limit = 100000 on your php-fpm pool, to prevent multiline output on stdout

Usage

  1. Change extended class in app/Exceptions/Handler.php from Laravel\Lumen\Exceptions\Handler as ExceptionHandler with use Yannice92\LumenInterceptor\Exceptions\BaseHandler; so it should be class Handler extends BaseHandler
  2. Add Yannice92\LumenInterceptor\Http\Middleware\LogRequestResponseMiddleware::class in global middleware on bootstrap/app.php
    $app->middleware([
         Yannice92\LumenInterceptor\Http\Middleware\LogRequestResponseMiddleware::class,
         ...
     ]);
  3. Add X-Request-ID header for correlation Id

Authors

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2020-04-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固