PHP code example of aqhmal / laravel-telegram-log

1. Go to this page and download the library: Download aqhmal/laravel-telegram-log 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/ */

    

aqhmal / laravel-telegram-log example snippets


'telegram' => [
    'driver' => 'custom',
    'via' => Aqhmal\TelegramLog\TelegramLog::class,
    'level' => env('LOG_LEVEL', 'debug'),
]

'stack' => [
    'driver' => 'stack',
    'channels' => ['single', 'telegram'],
]

$app->register(Aqhmal\TelegramLog\TelegramLogServiceProvider::class);

use Illuminate\Support\Facades\Log;

Log::emergency($message);
Log::alert($message);
Log::critical($message);
Log::error($message);
Log::warning($message);
Log::notice($message);
Log::info($message);
Log::debug($message);
bash
LOG_CHANNEL=telegram