PHP code example of scary-layer / laravel-telegram-logging

1. Go to this page and download the library: Download scary-layer/laravel-telegram-logging library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

scary-layer / laravel-telegram-logging example snippets


'telegram' => [
    'driver'  => 'custom',
    'level'   => 'debug',
    'via'     => ScaryLayer\Logging\Telegram\Logger::class,
    'token'   => env('LOG_TELEGRAM_BOT_TOKEN', ''),
    'chat_id' => env('LOG_TELEGRAM_CHAT_ID', ''),
],

'stack' => [
    'driver' => 'stack',
    'channels' => ['daily', 'telegram'],
    'ignore_exceptions' => false,
],
config/logging.php
 LOG_TELEGRAM_BOT_TOKEN 
LOG_TELEGRAM_CHAT_ID
config/logging.php
LOG_CHANNEL