A package to send Laravel/Lumen logs to Telegram via Telegram Bot.
aqhmal/laravel-telegram-log is a Laravel package for a package to send laravel/lumen logs to telegram via telegram bot..
It currently has 0 GitHub stars and 2.884 downloads on Packagist (latest version 1.1.1).
Install it with composer require aqhmal/laravel-telegram-log.
Discover more Laravel packages by aqhmal
or browse all Laravel packages to compare alternatives.
Last updated
Laravel/Lumen package to send logs to Telegram via Telegram Bot. This package adds the Lumen support for this Laravel package.
This version supports
composer require aqhmal/laravel-telegram-log
'telegram' => [
'driver' => 'custom',
'via' => Aqhmal\TelegramLog\TelegramLog::class,
'level' => env('LOG_LEVEL', 'debug'),
]
If you use stack as the default log channel, you can append the telegram channel in it.
'stack' => [
'driver' => 'stack',
'channels' => ['single', 'telegram'],
]
TELEGRAM_BOT_TOKEN=bot_token
TELEGRAM_CHAT_ID=chat_id
LOG_CHANNEL value in your .env to telegramLOG_CHANNEL=telegram
Register a new Service Provider in bootstrap/app.php.
$app->register(Aqhmal\TelegramLog\TelegramLogServiceProvider::class);
You may write information to the logs using the Log facade. Refer here for more detail.
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);
This Telegram log package is licensed under the MIT license.