Skip to content

Channel to send logs to Telegram chat from Laravel application

Notifications You must be signed in to change notification settings

sergeich5/laravel-telegram-logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  1. Run composer
composer require sergeich5/laravel-telegram-logs
  1. Add new channel to your config/logging.php at channels stack
'telegram' => [
    'driver' => 'custom',
    'via'    => \Sergeich5\LaravelTelegramLogs\TelegramLogger::class,
    'level' => 'debug',
    
    // Telegram BOT_ID and TOKEN colon separated
    'token' => 'BOT_ID:BOT_TOKEN',
    
    // Telegram Chat Id
    'chat_id' => '12345678',
    
    // int|null to send message to specific chat thread, see: https://core.telegram.org/api/threads
    'thread_id' => '123',
],

About

Channel to send logs to Telegram chat from Laravel application

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages