定制 urmaul/yii-slack-log 二次开发

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

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

urmaul/yii-slack-log

最新稳定版本:1.1.2

Composer 安装命令:

composer require urmaul/yii-slack-log

包简介

Yii log route that pushes logs to Slack channel.

README 文档

README

Yii log route that pushes logs to Slack channel. This is a fork of yii2-slack-log modified to work in Yii 1.1.

How to install

  1. Add "Incoming WebHook" to slack.

  2. Attach log route.

    composer require urmaul/yii-slack-log '~1.0'
    
  3. Add this route to log targets.

    'log' => [
        'class'=>'CLogRouter',
        'routes' => [
            [
                'class' => 'urmaul\yii\log\slack\Target',
                'levels' => 'error', // Send message on errors
                'except' => 'exception.CHttpException.404', // ...except 404
                'enabled' => !YII_DEBUG, // No not send in debug mode
                'webhookUrl' => 'YOUR_WEBHOOK_URL_FROM_SLACK',
                //'username' => 'MYBOT', // Bot username. Defaults to app name
                //'icon_url' => null, // Bot icon URL
                //'icon_emoji' => ':beetle:', // Bot icon emoji
                //'prefix' => '', // Any text prefix. As a sample, you can mention @yourself.
            ],
        ],
    ],
    

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-08