2017 © Pedro Peláez
 

yii2-extension yii2-slack-log

Pretty Slack log target for Yii 2

image

sergeymakinen/yii2-slack-log

Pretty Slack log target for Yii 2

  • Thursday, August 17, 2017
  • by sergeymakinen
  • Repository
  • 2 Watchers
  • 16 Stars
  • 5,949 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 20 % Grown

The README.md

Slack log target for Yii 2

Pretty Slack log target for Yii 2., (*1)

Screenshot, (*2)

Code Quality Build Status Code Coverage SensioLabsInsight, (*3)

Packagist Version Total Downloads Software License, (*4)

Installation

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

Either run, (*6)

composer require "sergeymakinen/yii2-slack-log:^2.0"

or add, (*7)

"sergeymakinen/yii2-slack-log": "^2.0"

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

Usage

First set up an incoming webhook integration in your Slack team and obtain a token. It should look like https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX., (*9)

Then set the following Yii 2 configuration parameters:, (*10)

'components' => [
    'log' => [
        'targets' => [
            [
                'class' => 'sergeymakinen\yii\slacklog\Target',
                'webhookUrl' => 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX',
            ],
        ],
    ],
],

Sample config:, (*11)

'components' => [
    'log' => [
        'targets' => [
            [
                'class' => 'sergeymakinen\yii\slacklog\Target',
                'levels' => ['error'],
                'except' => [
                    'yii\web\HttpException:*',
                ],
                'enabled' => YII_ENV_PROD,
                'webhookUrl' => 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX',
                'username' => 'Fire Alarm Bot',
                'iconEmoji' => ':poop:',
            ],
        ],
    ],
],

The Versions

17/08 2017

dev-master

9999999-dev https://github.com/sergeymakinen/yii2-slack-log

Pretty Slack log target for Yii 2

  Sources   Download

MIT

The Requires

 

The Development Requires

log logging yii2 yii slack yii2-slack-log

09/02 2017

v2.0.1

2.0.1.0 https://github.com/sergeymakinen/yii2-slack-log

Pretty Slack log target for Yii 2

  Sources   Download

MIT

The Requires

 

The Development Requires

log logging yii2 yii slack yii2-slack-log

25/01 2017

v2.0.0

2.0.0.0 https://github.com/sergeymakinen/yii2-slack-log

Pretty Slack log target for Yii 2

  Sources   Download

MIT

The Requires

 

The Development Requires

log logging yii2 yii slack yii2-slack-log

05/01 2017

v1.3.1

1.3.1.0 https://github.com/sergeymakinen/yii2-slack-log

Pretty Slack log target for Yii 2

  Sources   Download

MIT

The Requires

 

The Development Requires

log logging yii2 yii slack yii2-slack-log

04/01 2017

v1.3.0

1.3.0.0 https://github.com/sergeymakinen/yii2-slack-log

Pretty Slack log target for Yii 2

  Sources   Download

MIT

The Requires

 

The Development Requires

log logging yii2 yii slack yii2-slack-log

27/11 2016

v1.2.0

1.2.0.0 https://github.com/sergeymakinen/yii2-slack-log

Pretty Slack log target for Yii 2

  Sources   Download

MIT

The Requires

 

The Development Requires

log logging yii2 yii slack yii2-slack-log

23/11 2016

v1.1.2

1.1.2.0 https://github.com/sergeymakinen/yii2-slack-log

Pretty Slack log target for Yii 2

  Sources   Download

MIT

The Requires

 

log logging yii2 yii slack yii2-slack-log

23/08 2016

v1.1.1

1.1.1.0 https://github.com/sergeymakinen/yii2-slack-log

Pretty Slack log target for Yii 2

  Sources   Download

MIT

The Requires

 

log logging yii2 yii slack yii2-slack-log

14/08 2016

v1.1.0

1.1.0.0 https://github.com/sergeymakinen/yii2-slack-log

Pretty Slack log target for Yii 2

  Sources   Download

MIT

The Requires

 

log logging yii2 yii slack yii2-slack-log

07/08 2016

v1.0.0

1.0.0.0 https://github.com/sergeymakinen/yii2-slack-log

Pretty Slack log target for Yii 2

  Sources   Download

MIT

The Requires

 

log logging yii2 yii slack yii2-slack-log