Skip to content

zfegg/stratigility-logging-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logging for errors in Mezzio

GitHub Actions: Run tests Coverage Status Latest Stable Version

实现 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 安装依赖.

    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日志实现)服务.