idio/monolog-airbrake

This package is abandoned and no longer maintained. The author suggests using the wirebox/monolog-airbrake package instead.

Airbrake Handler for Monolog

dev-master 2015-07-27 09:52 UTC

This package is not auto-updated.

Last update: 2015-07-31 08:47:57 UTC


README

:warning: PLEASE NOTE: This repository is no longer actively maintained or supported. Please see Wirebox/monolog-airbrake for a maintained fork.

Add the following to your composer.json and run composer update

{
    "require": {
        "idio/monolog-airbrake": "dev-master"
    }
}

Usage

$monolog->pushHandler(new Idio\MonologHandlers\AirbrakeHandler('AIRBRAKE TOKEN', array('airbrakeconfig' => 'here')));
Full example
$monolog = new Logger('TestLog');
$monolog->pushHandler(new Idio\MonologHandlers\AirbrakeHandler('AIRBRAKE TOKEN', array('airbrakeconfig' => 'here')));
$monolog->addWarning('This is a warning logging message');