https://github.com/alexeevdv/yii2-log-slack
Sends log messages to Slack webhook.
https://github.com/alexeevdv/yii2-log-slack
logger slack target yii2 yii2-extension
Last synced: 7 months ago
JSON representation
Sends log messages to Slack webhook.
- Host: GitHub
- URL: https://github.com/alexeevdv/yii2-log-slack
- Owner: alexeevdv
- License: mit
- Created: 2017-06-20T17:04:08.000Z (almost 9 years ago)
- Default Branch: develop
- Last Pushed: 2022-04-20T17:31:48.000Z (about 4 years ago)
- Last Synced: 2024-10-01T00:23:43.960Z (over 1 year ago)
- Topics: logger, slack, target, yii2, yii2-extension
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SlackTarget for Yii2 logger
===========================
[](https://travis-ci.org/alexeevdv/yii2-log-slack)
[](https://codecov.io/gh/alexeevdv/yii2-log-slack)






Sends log messages to Slack webhook.
## Installation
The preferred way to install this extension is through [composer](https://getcomposer.org/download/).
Either run
```bash
$ 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
```php
//...
'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](https://github.com/maknz/slack#settings)