Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zfegg/stratigility-logging-error
Logging for errors in Mezzio
https://github.com/zfegg/stratigility-logging-error
Last synced: about 2 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-21T14:06:55.000Z (4 months ago)
- Last Synced: 2024-09-22T03:11:39.565Z (3 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
=====================================[![GitHub Actions: Run tests](https://github.com/zfegg/stratigility-logging-error/workflows/qa/badge.svg)](https://github.com/zfegg/stratigility-logging-error/actions?query=workflow%3A%22qa%22)
[![Coverage Status](https://coveralls.io/repos/github/zfegg/stratigility-logging-error/badge.svg?branch=master)](https://coveralls.io/github/zfegg/stratigility-logging-error?branch=master)
[![Latest Stable Version](https://poser.pugx.org/zfegg/stratigility-logging-error/v/stable.png)](https://packagist.org/packages/zfegg/stratigility-logging-error)实现 mezzio 记录错误日志功能, 使用PSR3记录日志.
Implement mezzio logging errors.
See https://docs.zendframework.com/zend-mezzio/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日志实现)服务.