承接 martenkoetsier/laravel-debugrequest 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

martenkoetsier/laravel-debugrequest

最新稳定版本:v1.0.1

Composer 安装命令:

composer require martenkoetsier/laravel-debugrequest

包简介

Have a middleware log some details on every request such as route used, session, logged-in user, request parameters, and request duration.

README 文档

README

During development of Laravel projects, it is often required to use the log to debug aspects of the project. The log easily becomes large and finding the right entries may become cumbersome. This package makes sure that every request (both web requests and api requests) will have a log entry. This entry notes some request and session details, after which the application logic may log its own messages. Finally, this package logs some more information.

To be very easily recognized, the first log entry is a collection of information, written in a "box", using regular box drawing characters. The general layout is as follows:

╔═╡GET /╞═════════════════════════════════════════════╗
║ route: (anonymous)                                  ║
║ mw: web                                             ║
║ sid:1ykjpbMLmEeCHY5Uc7IiTpg7KKVzmOTBslki5VEi u:none ║
╚═════════════════════════════════════════════════════╝

This can be completed by session and request information.

If the application assigns some (temporary) values to the session, this information is displayed in a separate box at the end of the request. And finally, the amount of time passed in milliseconds is displayed.

Installation

composer require martenkoetsier/laravel-routelist

The automatic package discovery will add the service provider to your project and assign the middleware to the web and api middleware groups.

Configuration can be changed:

php artisan vendor:publish --provider="Martenkoetsier\LaravelDebugrequest\Providers\LaravelDebugrequestProvider"

In this file, all configuration is setup with the default values.

Implementation

This package is implemented as a middleware, which can be assigned to any route. By default, it is added to the web and api middleware groups.

Since this is a middleware, part of the application call is processed before the log is generated. The developer may change where this middleware is called in the \App\Http\Kernel class, but keep in mind that at least the session should have been started and authorization should be ready.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固