Logging to Telegram using Laravel logging
nechaienko/laravel-telegram-logging is a Laravel package for logging to telegram using laravel logging.
It currently has 2 GitHub stars and 214 downloads on Packagist (latest version 1.0.11).
Install it with composer require nechaienko/laravel-telegram-logging.
Discover more Laravel packages by nechaienko
or browse all Laravel packages to compare alternatives.
Last updated
This package gives opportunity logging to telegram with custom Laravel logging
composer require nechaienko/laravel-telegram-logging
Add configurations to file ..\your_project\config\logging.php
'telegram' => [
'driver' => 'custom',
'via' => \Nechaienko\TelegramLogging\LogToTelegram::class,
'level' => 'info'
],
Add Telegram Bot Token to file ..\your_project\.env
TELEGRAM_BOT_TOKEN=****
Create file telegram.php in config folder
..\your_project\config\telegram.php'
<?php
return [
'telegram_admin_ids' => [
'*********', //developer 1
'*********', //developer 2
]
];
use Illuminate\Support\Facades\Log;
...
Log::channel('telegram')->info('message');