2017 © Pedro Peláez
 

library monolog-mattermost

Handle logs to Mattermost

image

viniciuswebdev/monolog-mattermost

Handle logs to Mattermost

  • Saturday, June 3, 2017
  • by viniciuswebdev
  • Repository
  • 3 Watchers
  • 6 Stars
  • 1,683 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 71 % Grown

The README.md

Monolog Mattermost Handler

Travis Scrutinizer, (*1)

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., (*2)

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:, (*3)

  • 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)., (*4)

The Versions

03/06 2017

dev-master

9999999-dev

Handle logs to Mattermost

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vinicius Oliveira Silva

02/06 2017

1.0.0

1.0.0.0

Handle logs to Mattermost

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vinicius Oliveira Silva