Skip to content

Monolog Handler to send log messages to Mattermost channels using Incoming Webhook Integration.

License

Notifications You must be signed in to change notification settings

viniciuswebdev/monolog-mattermost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monolog Mattermost Handler

Travis Scrutinizer

This Handler may be useful if you need send log messages to Mattermost channels, it's very easy to setup and integrate in your application if you are using Monolog.

Instalation

composer require "viniciuswebdev/monolog-mattermost:1.0.0"

Code example

use Monolog\Logger;

$logger = new Logger('application');
$logger->pushHandler(new MattermostHandler('https://mattermost.my-company.net.br/hooks/xxx'));

$logger->info('Your message here!');

How to get my Webhook url?

Just follow these few steps:

  • Go to Integrations item on main menu
  • Incoming Webhook
  • Add Incoming Webhook
  • Chose a name, description and the desired channel to publish
  • Get the URL to use in the Handler constructor

License

The MIT License (MIT).

About

Monolog Handler to send log messages to Mattermost channels using Incoming Webhook Integration.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages