mediamotionag / contao-syslog-bundle
Send errors (or all) log messages to a slack channel.
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Type:contao-bundle
Requires
- php: >=5.6.0
- alek13/slack: ^1.10
- contao/core-bundle: ^4.4
Requires (Dev)
- contao/manager-plugin: ^2.0
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
This package is auto-updated.
Last update: 2023-07-11 07:06:45 UTC
README
About
Send Contao system-log messages to a slack channel.
This bundle adds a hook that reads element all messages and filters them by the defined type in the contao settings. All system-log errors can be filtered by an ignore list. The ignore list can be a comma seperated list of words or sentences, that if exist in the message, will disregard the message from being sent to the slack channel. The ignore list can also be a link to a txt-file (via URL) that contains one search-term per line.
Installation
Install composer if you haven't already, then enter this command in the main directory of your Contao installation:
composer require mediamotionag/contao-syslog-bundle
Usage
- Setup a slack webhook here: https://slack.com/apps/manage/custom-integrations
- Install bundle
- Activate the Syslog in the contao system settings
- Set the log level in the contao system settings
- Set the slack information in the contao system settings
- Wait for the next error to happen (or try and log in with the wrong password a few times ;)
Contribution
Bug reports and pull requests are welcome