承接 thtmorais/yii2-log-discord-target 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

thtmorais/yii2-log-discord-target

最新稳定版本:1.0

Composer 安装命令:

composer require thtmorais/yii2-log-discord-target

包简介

Discord log target for Yii2

README 文档

README

This is the PHP Yii2 plugin for sending log of a yii application through the Discord WebHook API.

Important

You should avoid to use this target on a frequent events because of restriction in 30 messages per 60 seconds for the web-hooks.

Installation

Execute following command in shell:

composer require thtmorais/yii2-log-discord-target

Or add following in your composer.json require section, and run composer install in your shell

"thtmorais/yii2-log-discord-target": "*"

Configuration and usage

Add something as following in your yii config into the components section

'log' => [
    'class'     => '\thtmorais\log\DiscordTarget',
    'url'       => 'WEBHOOK_URL',                 // Your WebHook URL
    //'pattern' => "{category}: {level}\n{text}", // Optionally you can override default message pattern
]

More info about log targets may be found here

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-20