定制 php-middleware/log-exceptions 二次开发

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

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

php-middleware/log-exceptions

Composer 安装命令:

composer require php-middleware/log-exceptions

包简介

Log all exceptions from your middlewares

README 文档

README

Log all exceptions from your middlewares

When your middleware throw exception this middleware catch it, log it and throw again. You will newer miss any exception.

Installation

composer require php-middleware/log-exceptions

To build this middleware you need to injecting inside LogExceptionMiddleware instance of any Psr\Log\LoggerInterface implementation:

$logger = new LoggerImplementation();
$middleware = new PhpMiddleware\LogException\LogExceptionMiddleware($logger);

and add it into your middleware dispatcher. You can also setup level of log (default critical, second arg) and message (third arg).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固