idio / monolog-airbrake
Airbrake Handler for Monolog
Installs: 3 798
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 9
Forks: 1
Open Issues: 2
Requires
- php: >=5.3.0
- dbtlr/php-airbrake: ^1.1
- monolog/monolog: >=1.6
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2015-07-31 08:47:57 UTC
README
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');