PHP code example of davarch / telegram-logger

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

    

davarch / telegram-logger example snippets


'channels' => [
    ...
    'telegram' => [
        'driver' => 'custom',
        'via' => \Davarch\TelegramLogger\Logging\TelegramLoggerFactory::class,
        'level' => env('LOG_LEVEL', 'debug'),
    ],
],

logger()?->channel('telegram')->debug('debug message');