2017 © Pedro Peláez
 

cakephp-plugin cakephp-slack-log-engine

Slack log engine for CakePHP

image

hiromi2424/cakephp-slack-log-engine

Slack log engine for CakePHP

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

The README.md

Build Status Coverage Status Total Downloads Latest Stable Version Scrutinizer, (*1)

What is this?

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

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

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

Installation

composer require hiromi2424/cakephp-slack-log-engine

Requirements

  • CakePHP 3.x
  • PHP 5.5+

Usage

Configure log

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

'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., (*6)

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

The Versions

22/12 2016

dev-master

9999999-dev 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

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