Skip to content

slashtrace/slashtrace-bugsnag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlashTrace - Awesome error handler - Bugsnag handler

This is the Bugsnag handler for SlashTrace. Use it to send your errors and exceptions to your Sentry account.

Usage

  1. Install using Composer:

    composer require slashtrace/slashtrace-bugsnag
    
  2. 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.

About

Bugsnag handler for SlashTrace

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages