maras0830 / laravel-logslack
Send logs to slack channel.
Installs: 2 911
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >=5.4.0
- illuminate/support: ~5.0|~6.0|~7.0|^8.0|^9.0|^9.1
README
via incoming callback - https://api.slack.com/incoming-webhooks
Installation
$ composer require maras0830/laravel-LogSlack
in config/app.php
'providers' => [ ... Maras0830\LogSlack\Providers\LogSlackBotServiceProvider::class, ];
.env
SLACK_LOG_LEVEL=success,warning,error
SLACK_LOG_CALLBACK_URL=<slack_incoming_callback_url>
if your laravel version >= 5.8, install laravel/slack-notification-channel
$ composer require laravel/slack-notification-channel
Example
in route/web.php
Route::get('slack', function() { Log::debug('Slack Log ', ['Slack' => 'Hello']); });
call http://localhost/slack