-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
I am using Laravel 5 and I have some issues with Slack Handler integration.
I set up a ChromePHP Handler and It works perfectly so I assume there is no problems with Laravel.
This is the way I set up Slack Handler
$monolog = Log::getMonolog();
$monolog->pushHandler($chromeHandler = new \Monolog\Handler\ChromePHPHandler());
$chromeHandler->setFormatter(new \Monolog\Formatter\ChromePHPFormatter());
$slackHandler = new \Monolog\Handler\SlackHandler('my-api-token', 'general');
$monolog->pushHandler($slackHandler);
$slackHandler->setFormatter(new \Monolog\Formatter\LineFormatter());
I get my api token from https://api.slack.com/web#auth.
Is there anything wrong with my config?
At the same time, ChromePHP works and Slack doesn't work.
I really can't make Monolog work with Slack.
Metadata
Metadata
Assignees
Labels
No labels