ethercreative / yii2-slack-error-logger
Send errors (5xx) to a slack channel
Installs: 5 235
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Type:project
Requires
- maknz/slack: ^1.7
This package is not auto-updated.
Last update: 2025-02-16 04:03:53 UTC
README
Send errors (5xx) to a slack channel
Install
You can install the package using the Composer package manager. You can install it by running this command in your project root:
composer require ethercreative/yii2-slack-error-logger
Basic Usage
Add the class to your configuration file.
You will need to create an incoming webhook
// ... 'log' => [ // ... 'targets' => [ [ 'class' => 'ethercreative\log\Error', 'levels' => ['error'], 'webhook' => 'https://hooks.slack.com/...', 'name' => 'The name of your project', 'username' => 'The username for the user', 'channel' => '#thechannel', ], ], ], // ...