devskyfly/yii-extension-telegram-target

v1.0.1 2021-11-25 08:22 UTC

This package is auto-updated.

Last update: 2024-11-25 14:52:59 UTC


README

Realize telegram chat as log target.

Config targets.

'components' = [
    'log' => [
        'targets' => [
        [
            'class' => 'devskyfly\yiiExtensionTelegramTarget\TelegramTarget',
            'chatId' => "",
            'botToken' => "BOT:TOKEN",
            'botUserName' => 'BOTNAME',
            'levels' => ['error', 'warning'],
            'categories' => ['yii\db\*'],
            'except' => [
                    'yii\web\*',
            ],
        ],
        ...
    ]
]

Bot config and group create