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
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-26