xlerr / sentry-ewechat

此包已被废弃,不再维护。没有推荐替代包。

此包尚无发布版本,信息不多。


README

企业微信

Packagist Version PHP from Packagist Build Status GitHub code size in bytes

安装

composer require xlerr/sentry-ewechat

配置

[
    "log" => [
        'targets' => [
            [
                'class' => \xlerr\sentry\ewechat\Target::class,
                'levels' => ['error', 'warning'],
                // 'config' => null, // default value, is disabled.
                // 'config' => function () {
                //     return \kvmanager\models\KeyValue::getValueAsArray('sentry_ewechat_config');
                //     // or
                //     return [];
                // },
                'config' => [
                    'host' => 'http://api.myhost.com',
                    'chatId' => 'chatId',
                    // 'enabled' => true,
                    // 'categories' => [],
                    // 'except' => [],
                    // 'logVars' => [],
                    // 'msgMaxLength' => 0,
                    // 'exceptMatchMsg' => [],
                    // 'system' => "[DEPOSIT]\n",
                ],
            ],
        ],
    ],
]