2017 © Pedro Peláez
 

cakephp-plugin cakephp-slack-log-engine

Slack log engine for CakePHP

image

jeffersonsimaogoncalves/cakephp-slack-log-engine

Slack log engine for CakePHP

  • Tuesday, July 17, 2018
  • by jeffersonsimaogoncalves
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

What is this?

This is CakePHP plugin to provide a log engine that post to slack using incoming webhooks., (*1)

Please see detail how to configure webhooks on slack., (*2)

The engine uses Slack for PHP and is just thin wrapper for the library., (*3)

Installation

composer require jeffersonsimaogoncalves/cakephp-slack-log-engine

Requirements

  • PHP 7
  • CakePHP 3.x

Usage

Configure log

In your app.php, you can configure like:, (*4)

'Log' => [
    'error' => [
        'className' => 'SlackLogEngine\Log\Engine\SlackLogEngine',
        // Your slack hook URL here
        'hookUrl' => 'https://hooks.slack.com/services/xxxxx/xxxxx/xxxxxxxxxx',
        // Send logs of following levels to slack
        'levels' => ['error', 'critical', 'alert', 'emergency'],
    ],
],

Log options

Either client or hookUrl is required., (*5)

  • hookUrl [string] Slack hook url.
  • client [\Maknz\Slack\Client] Slack client instance for custom.
  • clientClass [string(optional)] slack client class. This option is used only with hookUrl option.

Other available settings can be seen at Slack for PHP Official Docs, (*6)

Credits

This work is based on the code by Hiroki Shimizu., (*7)

The Versions

17/07 2018

dev-master

9999999-dev https://github.com/jeffersonsimaogoncalves/cakephp-slack-log-engine

Slack log engine for CakePHP

  Sources   Download

MIT

The Requires

 

log cakephp slack cake

17/07 2018
16/12 2016

v1.0-RC1

1.0.0.0-RC1 https://github.com/hiromi2424/cakephp-slack-log-engine

Slack log engine for CakePHP

  Sources   Download

MIT

The Requires

 

The Development Requires

log cakephp slack cake

16/12 2016

v0.1-beta

0.1.0.0-beta https://github.com/hiromi2424/cakephp-slack-log-engine

Slack log engine for CakePHP

  Sources   Download

MIT

The Requires

 

The Development Requires

log cakephp slack cake