alexeevdv / yii2-log-slack
Package info
github.com/alexeevdv/yii2-log-slack
Type:yii2-extension
pkg:composer/alexeevdv/yii2-log-slack
1.0.1
2018-02-18 09:21 UTC
Requires
- maknz/slack: ^1.7
- yiisoft/yii2: ^2.0
Requires (Dev)
This package is auto-updated.
Last update: 2026-02-21 01:51:57 UTC
README
Sends log messages to Slack webhook.
Installation
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.
Configuration
Through application component
//... 'components' => [ //... 'log' => [ //... 'targets' => [ //... [ 'class' => alexeevdv\log\SlackTarget::class, 'webhook' => 'https://your_webhook_link', // other optional params goes here ], //... ], //.. ], //... ], //...
Supported params:
For the list of supported params please refer to https://github.com/maknz/slack