Bugsnag integration for monolog. An abstract handler that sends messages to Bugsnag

Installs: 29 156

Dependents: 0

Stars: 8

Watchers: 1

Forks: 1

V2.0.0 2015-11-09 09:19 UTC


Build Status Coverage Status Latest Stable Version License Monthly Downloads

Monolog Handler connection to Bugsnag


Via Composer: Add the following to your composer.json:

  "require": {
        "mead-steve/mono-snag": "^2.0.0"


A handler is provided that wraps up a Bugsnag client. By default the handler will grab anything at Logger::ERROR and above and send it to Bugsnag.

$logger  = new Monolog\Logger("Example");

$bugsnagClient = new Bugsnag_Client('YOUR-BUGSNAG-API-KEY-HERE');
//... bugsnag specific config goes here.
$bugsnagHandler = new \MeadSteve\MonoSnag\BugsnagHandler($bugsnagClient);


// The following error will get sent automatically to Bugsnag
$logger->addError("oh no!", array('exception' => new \Exception("ohnoception")));