forked from jenssegers/laravel-rollbar
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
55: bind a Rollbar exception handler to report exceptions to rollbar
- Loading branch information
1 parent
39ec203
commit b9ce5ef
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Rollbar\Laravel; | ||
|
||
use App\Exceptions\Handler as AppHandler; | ||
|
||
class ExceptionHandler extends AppHandler | ||
{ | ||
public function report(\Exception $exception) | ||
{ | ||
\Rollbar\Rollbar::log(\Rollbar\Payload\Level::ERROR, $exception); | ||
|
||
parent::report($exception); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b9ce5ef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks my app.
I get following error Class 'App\Exceptions\Handler' not found
b9ce5ef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your feedback. I'm working on a fix now (#56)