wildan99/yii2-telegram-log

Telegram Log

dev-master 2017-12-18 08:48 UTC

This package is not auto-updated.

Last update: 2024-05-12 03:14:12 UTC


README

Telegram Log

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist wildan99/yii2-telegram-log "*"

or add

"wildan99/yii2-telegram-log": "*"

to the require section of your composer.json file.

Usage

'log' => [
    'targets' => [
        [
            'class' => 'wildan99\yii2\log\TelegramTarget',
            'levels' => ['error'],
            'botToken' => '123456:abcde', // bot token secret key
            'chatId' => '123456', // chat id or channel username with @ like 12345 or @channel
        ],
    ],
],