ishukrullo/yii2-errorsender On Exception, sends exception title and content to set user.

Send exceptions to telegram user.

  1. Installation
  2. Usage

On Exception, sends exception title and content to set telegram user. To get errors, first you need to hit start on bot ErrorGetterBot

Installation

The preferred way to install this extension is through composer.

Either run

composer require  ishukrullo/yii2-errorsender v1.2.1

or add

"ishukrullo/yii2-errorsender": "^v1.2.1"

to the require section of your composer.json file.

Usage

Once the extension is installed, add custom errorHandler class to component section of your configuration file (config/main.php):

        'errorHandler' => [
            'class' => 'ishukrullo\errorsender\ErrorSendToTelegram',
            'userId' => '460314569', // telegram user's id (don't forget to start the @ErrorGetterBot)
            'errorAction' => 'site/error',
        ],

0 0
1 follower
20 downloads
Yii Version: 2.0
License: BSD-3-Clause
Category: Logging
Developed by: Shukrullo
Created on: Jul 25, 2023
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions