zfegg / stratigility-logging-error
Mezzio 中错误日志记录
2.0.2
2024-08-21 14:06 UTC
Requires
- php: >=7.4
- laminas/laminas-stratigility: ^2.1 || ^3.0.0 || ^4
- psr/container: ^1.0 || ^2.0
- psr/http-message: ^1.0 || ^2.0
- psr/log: ^1.0 || ^2.0 || ^3.0
Requires (Dev)
- laminas/laminas-diactoros: ^2.0
- monolog/monolog: ^1.23
- phpunit/phpunit: ^9.0
- slevomat/coding-standard: ^7.0.12
This package is auto-updated.
Last update: 2024-09-21 14:15:27 UTC
README
实现 Mezzio 记录错误日志功能,使用PSR3记录日志。
实现 Mezzio 错误日志记录。
见 https://docs.zendframework.com/zend-mezzio/features/error-handling/#listening-for-errors
使用说明/Usage
-
通过 composer 安装。
通过 composer 安装依赖。
composer require zfegg/stratigility-logging-error
-
在
config/config.php
中添加ConfigProvider::class
配置。在
config/config.php
中添加ConfigProvider::class
配置。 -
配置你的
Psr\Log\LoggerInterface::class
服务。在你的服务中配置
Psr\Log\LoggerInterface::class
(PSR3日志实现)服务。