Sends log messages to Slack webhook.
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require alexeevdv/yii2-log-slack "^1.0"
or add
"alexeevdv/yii2-log-slack": "^1.0"
to the require
section of your composer.json
file.
//...
'components' => [
//...
'log' => [
//...
'targets' => [
//...
[
'class' => alexeevdv\log\SlackTarget::class,
'webhook' => 'https://your_webhook_link',
// other optional params goes here
],
//...
],
//..
],
//...
],
//...
For the list of supported params please refer to https://github.com/maknz/slack