philpm/yii2-dingtalk-robot

使用钉钉群聊机器人做为target

0.0.2 2019-07-08 10:05 UTC

This package is auto-updated.

Last update: 2024-05-08 20:56:53 UTC


README

使用钉钉机器人api作为yii2-log的target

Installation

1. 使用composer require安装

php composer.phar require --prefer-dist philpm/yii2-dingtalk-robot "0.0.1"

2. 添加依赖到composer.json文件

"philpm/yii2-dingtalk-robot": "0.0.1"

Usage

....
'components' => [
    'log' => [
        'targets' => [
            [
                'class' => 'phil\dingtalk\Target',
                'levels' => ['error', 'warning'],
                'categories' => ['api', 'app'],
                'except' => [
                    'yii\web\HttpException:404',
                ],
            ],
        ]
....

Testing

TODO