jc-it/yii2-monolog-slack-handler 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

jc-it/yii2-monolog-slack-handler

最新稳定版本:v2.0.1

Composer 安装命令:

composer require jc-it/yii2-monolog-slack-handler

包简介

A Yii2 implementation of a Slack Monolog handler with more context and formatting.

README 文档

README

codecov Continous integration Packagist Total Downloads Packagist Monthly Downloads GitHub tag (latest by date) Packagist Version

This extension provides a package that implements some traits and behaviors to work with model attribute translations.

$ composer require jc-it/yii2-monolog-slack-handler

or add

"jc-it/yii2-monolog-slack-handler": "^<latest version>"

to the require section of your composer.json file.

Configuration

For basic configuration see https://github.com/samdark/yii2-psr-log-target.

$logger = new Logger('slack-logger');
$handler = new \JCIT\components\log\SlackErrorWebhookHandler(
    webhookUrl: '<slackErrorWebhookHandler>',
    channel: '<slackChannel>',
    username: '<displayUsername>',
    level: \Monolog\Logger::WARNING,
);
$logger->pushHandler($handler);

TODO

  • Fix PHPStan, re-add to captainhook.json
    • {
          "action": "vendor/bin/phpstan",
          "options": [],
          "conditions": []
      },
      
  • Add tests

Credits

License

The MIT License (MIT). Please see LICENSE for more information.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-11