slashtrace / slashtrace-bugsnag
Bugsnag handler for SlashTrace
1.0.0
2018-09-26 17:02 UTC
Requires
- php: >= 5.6
- bugsnag/bugsnag: ^3.0
- slashtrace/slashtrace: ^1.0
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2024-11-27 06:20:43 UTC
README
This is the Bugsnag handler for SlashTrace. Use it to send your errors and exceptions to your Sentry account.
Usage
-
Install using Composer:
composer require slashtrace/slashtrace-bugsnag
-
Hook it into SlashTrace:
use SlashTrace\SlashTrace; use SlashTrace\Bugsnag\BugsnagHandler; $handler = new BugsnagHandler("Your Bugsnag API key"); $slashtrace = new SlashTrace(); $slashtrace->addHandler($handler);
Alternatively, you can pass in a pre-configured Bugsnag client when you instantiate the handler:
$bugsnag = Bugsnag\Client::make('Your Bugsnag API key'); $handler = new BugsnagHandler($bugsnag); $slashtrace->addHandler($handler);
Read the SlashTrace docs to see how to capture errors and exceptions, and how to attach additional data to your events.