2017 © Pedro Peláez
 

yii2-extension yii2-log-slack

image

alexeevdv/yii2-log-slack

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

SlackTarget for Yii2 logger

Build Status codecov, (*1)

PHP 5.6 PHP 7.0 PHP 7.1 PHP 7.2 PHP 7.3 PHP 7.4, (*2)

Sends log messages to Slack webhook., (*3)

Installation

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

$ php composer.phar require alexeevdv/yii2-log-slack "^1.0"

or add, (*6)

"alexeevdv/yii2-log-slack": "^1.0"

to the require section of your composer.json file., (*7)

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, (*8)

The Versions