Airbrake Handler for Monolog
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.

readme.md

⚠️ PLEASE NOTE: This repository is no longer actively maintained or supported. Please see airbrake/phpbrake for a maintained airbrake monolog handler.


Installation

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');