Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Telegram Log Channel Laravel Package

arhx/telegram-log-channel

Laravel log channel that sends Monolog messages to a Telegram chat via bot token and chat ID. Configure via .env or logging.php, add to your logging stack, and it safely falls back to a NullHandler when unset. Includes optional queued job failure alerts.

View on GitHub
Deep Wiki
Context7
1.1.1

Fixed

  • Queue failures setting now reads from a dedicated config file via config() instead of env() directly, ensuring compatibility with php artisan config:cache.
  • Added mergeConfigFrom in register() so default values work without publishing.
  • Added publishes() so users can publish config/telegram-log-channel.php for production use with config cache.
1.1.0

Added

  • Automatic Telegram notification when a queued job fails (Queue::failing listener).
  • Notifications include job name, exception message, connection name, and queue name.
  • Controlled via TELEGRAM_LOG_QUEUE_FAILURES env variable (defaults to true).
  • Compatible with Laravel 10, 11, and 12.
1.0.5

Added

  • Added unit tests for TelegramHandler to verify recursion protection and error handling.
  • Added autoload-dev to composer.json for test support.

Fixed

  • Added protection against recursive logging in TelegramHandler.
  • Added try-catch block in TelegramHandler::write to handle exceptions during log sending.
  • Implemented logSelfError to log internal errors to the single channel or system log without recursion.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium