jafarili/yii2-telegram-log
Composer 安装命令:
composer require jafarili/yii2-telegram-log
包简介
Yii 2.0 telegram log target, send logs to the telegram chats or channels
关键字:
README 文档
README
Yii 2.0 telegram log target, sends selected log messages to the specified telegram chats or channels
Installation
The preferred way to install this extension is through composer.
Either run
composer require jafarili/yii2-telegram-log
or add below line to the require section of composer.json file and then run composer update
"jafarili/yii2-telegram-log": "*"
How To Use
You should set telegram bot token and chatId in your config file like below code:
'log' => [
'targets' => [
[
'class' => 'Jafarili\log\TelegramTarget',
'levels' => ['error'],
'botToken' => '123456:abcde', // bot token secret key
'chatId' => '123456', // chat id or channel username with @ like 12345 or @channel
],
],
],
Changelog
1.0
- First version
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2021-01-25