定制 geo6/mezzio-monolog 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

geo6/mezzio-monolog

最新稳定版本:v2.0.2

Composer 安装命令:

composer require geo6/mezzio-monolog

包简介

Mezzio Monolog ErrorHandler

README 文档

README

Latest Stable Version Total Downloads Monthly Downloads Software License

This library enables Monolog as ErrorHandler in Mezzio.

Currently, there are 2 handlers supported (more will be added if needed):

Install

composer require geo6/mezzio-monolog

Configuration

Create a monolog.global.php file in your config directory:

<?php

declare(strict_types=1);

return [
    // StreamHandler
    'stream' => [
        'path' => 'data/log/myapp.log',
    ],
    // SentryHanlder
    'sentry' => [
        'dsn' => 'https://xxxxx@sentry.io/12345',
    ],
];

Usage

To enable it, you just have to add Geo6\Mezzio\Monolog\ConfigProvider::class to your main configuration (usually config/config.php):

...

$aggregator = new ConfigAggregator([
+     Geo6\Mezzio\Monolog\ConfigProvider::class,

    ...
], $cacheConfig['config_cache_path']);

...

The Monolog ErrorHandler will be active only in "production mode" (when $config['debug] is false).
To switch to "production mode", you can use composer run development-disable.

统计信息

  • 总下载量: 5.08k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2020-11-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固