Download the PHP package jeffersonsimaogoncalves/cakephp-slack-log-engine without Composer
On this page you can find all versions of the php package jeffersonsimaogoncalves/cakephp-slack-log-engine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jeffersonsimaogoncalves/cakephp-slack-log-engine
More information about jeffersonsimaogoncalves/cakephp-slack-log-engine
Files in jeffersonsimaogoncalves/cakephp-slack-log-engine
Download jeffersonsimaogoncalves/cakephp-slack-log-engine
More information about jeffersonsimaogoncalves/cakephp-slack-log-engine
Files in jeffersonsimaogoncalves/cakephp-slack-log-engine
Vendor jeffersonsimaogoncalves
Package cakephp-slack-log-engine
Short Description Slack log engine for CakePHP
License MIT
Homepage https://github.com/jeffersonsimaogoncalves/cakephp-slack-log-engine
Package cakephp-slack-log-engine
Short Description Slack log engine for CakePHP
License MIT
Homepage https://github.com/jeffersonsimaogoncalves/cakephp-slack-log-engine
Please rate this library. Is it a good library?
Informations about the package cakephp-slack-log-engine
What is this?
This is CakePHP plugin to provide a log engine that post to slack using incoming webhooks.
Please see detail how to configure webhooks on slack.
The engine uses Slack for PHP and is just thin wrapper for the library.
Installation
Requirements
- PHP 7
- CakePHP 3.x
Usage
Configure log
In your app.php, you can configure like:
'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.
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 withhookUrl
option.
Other available settings can be seen at Slack for PHP Official Docs
Credits
This work is based on the code by Hiroki Shimizu.
All versions of cakephp-slack-log-engine with dependencies
PHP Build Version
Package Version
The package jeffersonsimaogoncalves/cakephp-slack-log-engine contains the following files
Loading the files please wait ....