Download the PHP package carpediem/mattermost-monolog without Composer
On this page you can find all versions of the php package carpediem/mattermost-monolog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download carpediem/mattermost-monolog
More information about carpediem/mattermost-monolog
Files in carpediem/mattermost-monolog
Package mattermost-monolog
Short Description Mattermost monolog integration
License MIT
Homepage https://github.com/carpediem/mattermost-monolog
Informations about the package mattermost-monolog
Mattermost Monolog
This package allows sending log to Mattermost webhook using a dedicated Handler and Formatter.
This package requires carpediem/mattermost-webhook
System Requirements
You need PHP >= 5.6.0 but the latest stable version of PHP is recommended.
Installation
Documentation
Basic usage
The code above will register a Mattermost handler to your Monolog\Logger
object.
Advanced usage
If you don't like our formatter don't worry you can create your own formatter as long as
Formatter::format
returns aCarpediem\Mattermost\Webhook\MessageInterface
objectFormatter::formatBatch
returns aCarpediem\Mattermost\Webhook\MessageInterface
object
you'll be able to use the Carpediem\Mattermost\Monolog\Handler
Contributing
Contributions are welcome and will be fully credited. Please see CONTRIBUTINGfor details.
Testing
Mattermost Monolog
has a PHPUnit test suite and a coding style compliance test suite using PHP CS Fixer. To run the tests, run the following command from the project folder.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of mattermost-monolog with dependencies
monolog/monolog Version ^1.23
carpediem/mattermost-webhook Version ^1.2.0 || ^2.2.0