bzilee/multichannel-log-notification
Laravel package to send log notifications over multiple channels (Telegram, email, SMS, HTTP). Configure per log level, enable via env, plug into Monolog as a custom channel, and dispatch notifications to a dedicated queue for performance.
Pros:
Log facade and Notification system.Cons:
Laravel Ecosystem:
Log facade and events:listen system.config/services.php or package-specific config files.Third-Party Dependencies:
guzzlehttp/guzzle for HTTP, vonage/client for SMS).Database/Storage:
Channel-Specific Risks:
Performance:
bus:queue events) for scalability.Testing:
mollie/testing-library for assertions.Use Case Validation:
Channel Prioritization:
Reliability Requirements:
Observability:
Extensibility:
Alternatives:
Best Fit:
Log facade or events system.Poor Fit:
Log facade may require wrappers.Discovery Phase:
ERROR, CRITICAL) that need notifications.Proof of Concept (PoC):
composer require bzilee/multichannel-log-notification.Log::error().tideways/xhprof profiling).Incremental Rollout:
Customization:
config/multichannel-log-notification.php).Bzilee\MultichannelLogNotification\Contracts\ChannelInterface.Laravel Versions:
laravel/framework constraints).PHP Extensions:
fileinfo, mbstring, openssl (for HTTPS) are likely required for most channels.Database:
failed_jobs table) may be needed for retries.Pre-requisites:
APP_ENV and LOG_LEVEL appropriately.Core Integration:
php artisan vendor:publish --provider="Bzilee\MultichannelLogNotification\ServiceProvider".AppServiceProvider.Testing:
Log::channel() overrides for staging.Monitoring:
Optimization:
spatie/rate-limiter for HTTP channels).Pros:
Cons:
Pros:
Log facade, easing debugging.Cons:
Performance Bottlenecks:
bus:queue events).Scaling Strategies:
How can I help you explore Laravel packages today?