Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2022-04-20T17:31:48.000Z (over 2 years ago)
- Last Synced: 2024-10-01T00:23:43.960Z (3 months 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
===========================[![Build Status](https://travis-ci.org/alexeevdv/yii2-log-slack.svg?branch=master)](https://travis-ci.org/alexeevdv/yii2-log-slack)
[![codecov](https://codecov.io/gh/alexeevdv/yii2-log-slack/branch/master/graph/badge.svg)](https://codecov.io/gh/alexeevdv/yii2-log-slack)![PHP 5.6](https://img.shields.io/badge/PHP-5.6-green.svg)
![PHP 7.0](https://img.shields.io/badge/PHP-7.0-green.svg)
![PHP 7.1](https://img.shields.io/badge/PHP-7.1-green.svg)
![PHP 7.2](https://img.shields.io/badge/PHP-7.2-green.svg)
![PHP 7.3](https://img.shields.io/badge/PHP-7.3-green.svg)
![PHP 7.4](https://img.shields.io/badge/PHP-7.4-green.svg)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)