dickyermawan/yii2-telegram-log
Composer 安装命令:
composer require dickyermawan/yii2-telegram-log
包简介
Yii2 telegram log to sends logs in Yii2 to telegram.
README 文档
README
Yii2 telegram log to sends log in Yii2 to telegram.
Installation
The preferred way to install this extension is through composer.
Either run
composer require dickyermawan/yii2-telegram-log
or add
"dickyermawan/yii2-telegram-log": "*"
to the require section of your composer.json file.
How To Use
You should set telegram bot token and chatId in your config file. You can use the @get_id_bot bot to obtain it. It should look like 123456789.
'componenst' => [
'log' => [
'targets' => [
[
'class' => 'dickyermawan\log\Telegram',
'levels' => ['error'],
'botToken' => '123456:abcde', // bot token secret key
'chatId' => '123456', // chat id or channel username with @ like 12345 or @channel
'appName' => 'YOUR APP NAME', // optional (default is \Yii::$app->name)
],
],
],
]
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-21