https://github.com/zfegg/stratigility-logging-error
Logging for errors in Mezzio
https://github.com/zfegg/stratigility-logging-error
Last synced: 3 months ago
JSON representation
Logging for errors in Mezzio
- Host: GitHub
- URL: https://github.com/zfegg/stratigility-logging-error
- Owner: zfegg
- License: mit
- Created: 2018-02-06T03:25:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-21T14:06:55.000Z (11 months ago)
- Last Synced: 2024-09-22T03:11:39.565Z (10 months ago)
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Logging for errors in Mezzio
=====================================[](https://github.com/zfegg/stratigility-logging-error/actions?query=workflow%3A%22qa%22)
[](https://coveralls.io/github/zfegg/stratigility-logging-error?branch=master)
[](https://packagist.org/packages/zfegg/stratigility-logging-error)实现 mezzio 记录错误日志功能, 使用PSR3记录日志.
Implement mezzio logging errors.
See https://docs.mezzio.dev/mezzio/v3/features/error-handling/#listening-for-errors
使用说明/Usage
--------------1. Install via composer.
通过 composer 安装依赖.
```bash
composer require zfegg/stratigility-logging-error
```2. Add `ConfigProvider::class` in `config/config.php`.
在 `config/config.php` 中添加 `ConfigProvider::class` 配置.
3. Configure your `Psr\Log\LoggerInterface::class` service.
在你的服务中配置 `Psr\Log\LoggerInterface::class` (PSR3日志实现)服务.