LaravelPackages.net
Acme Inc.
Toggle sidebar
nechaienko/laravel-telegram-logging

Logging to Telegram using Laravel logging

214
2
1.0.11
About nechaienko/laravel-telegram-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

About Laravel-telegram-logging

This package gives opportunity logging to telegram with custom Laravel logging

Installation

composer require nechaienko/laravel-telegram-logging

Configuration

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
    ]
];

Usage

use Illuminate\Support\Facades\Log;
...
Log::channel('telegram')->info('message');

Star History Chart