2017 © Pedro Peláez
 

library yii-slack-log

Yii log route that pushes logs to Slack channel.

image

urmaul/yii-slack-log

Yii log route that pushes logs to Slack channel.

  • Friday, March 10, 2017
  • by urmaul
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,629 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 38 % Grown

The README.md

yii-slack-log

Yii log route that pushes logs to Slack channel. This is a fork of yii2-slack-log modified to work in Yii 1.1., (*1)

How to install

  1. Add "Incoming WebHook" to slack.
  2. Attach log route., (*2)

    composer require urmaul/yii-slack-log '~1.0'
    
  3. Add this route to log targets., (*3)

    'log' => [
        'class'=>'CLogRouter',
        'routes' => [
            [
                'class' => 'urmaul\yii\log\slack\Target',
                'levels' => 'error', // Send message on errors
                'except' => 'exception.CHttpException.404', // ...except 404
                'enabled' => !YII_DEBUG, // No not send in debug mode
                'webhookUrl' => 'YOUR_WEBHOOK_URL_FROM_SLACK',
                //'username' => 'MYBOT', // Bot username. Defaults to app name
                //'icon_url' => null, // Bot icon URL
                //'icon_emoji' => ':beetle:', // Bot icon emoji
                //'prefix' => '', // Any text prefix. As a sample, you can mention @yourself.
            ],
        ],
    ],
    

The Versions

10/03 2017

dev-master

9999999-dev https://github.com/urmaul/yii-slack-log

Yii log route that pushes logs to Slack channel.

  Sources   Download

MIT

The Requires

 

log route yii slack target

10/03 2017

1.1.2

1.1.2.0 https://github.com/urmaul/yii-slack-log

Yii log route that pushes logs to Slack channel.

  Sources   Download

MIT

The Requires

 

log route yii slack target

10/03 2016

1.1.1

1.1.1.0 https://github.com/urmaul/yii-slack-log

Yii log route that pushes logs to Slack channel.

  Sources   Download

MIT

The Requires

 

log route yii slack target

11/01 2016

v1.1.0

1.1.0.0 https://github.com/urmaul/yii-slack-log

Yii log route that pushes logs to Slack channel.

  Sources   Download

MIT

The Requires

 

log route yii slack target

08/12 2015

1.0.0

1.0.0.0 https://github.com/urmaul/yii-slack-log

Yii log route that pushes logs to Slack channel.

  Sources   Download

MIT

The Requires

 

log route yii slack target